Skip to content

Conversation

petewarden
Copy link

I had filenames that were longer than the 100 character limit, and they caused the buffer overflow checking code in sprintf() to trigger. Switching to snprintf() with an explicit 256 character limit fixed the problem in my case.

shelhamer added a commit that referenced this pull request Feb 5, 2014
Fix for buffer overflow problem with long filenames when setting up the LevelDB
@shelhamer shelhamer merged commit a039ff6 into BVLC:master Feb 5, 2014
@shelhamer
Copy link
Member

Thanks! A nice, round number like 256 is a better limit haha.

mitmul pushed a commit to mitmul/caffe that referenced this pull request Sep 30, 2014
Fix for buffer overflow problem with long filenames when setting up the LevelDB
lukeyeager added a commit to lukeyeager/caffe that referenced this pull request Nov 5, 2015
restored 95% of memory grabbed by CNMEM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants