[Bcrypt-users] Bug?
Status: Beta
Brought to you by:
jwshelley
From: Ron M. <qui...@gm...> - 2012-07-13 15:51:33
|
I was using bcrypt to encrypt some larger files > 2GB and I kept getting the "Can't allocate enough memory. Bailing out" message. I knew I had plenty of memory to encrypt the file I was trying to encrypt. So I did some debugging and it looks like the problem is a negative value getting passed to malloc on line 71 of rwfile.c. This happens because of an integer overflow because readsize is defined as a signed integer, I changed it to an unsigned long and it hasn't had any problems so far. Hope this helps someone, -Ron -- There are 10 types of people in the world: those who understand binary, and those who don't... http://quizno50.001webs.com/ |