| 0482a033 | 22-Aug-2010 |
Alex Hornung <ahornung@gmail.com> |
cryptsetup - Fix uuid bug, cleanup
* Clean up some useless debug and improve some other to be more meaningful.
* Fix (another) bug in the uuid mess. Linux' uuid_unparse doesn't allocate any mem
cryptsetup - Fix uuid bug, cleanup
* Clean up some useless debug and improve some other to be more meaningful.
* Fix (another) bug in the uuid mess. Linux' uuid_unparse doesn't allocate any memory, unlike our uuid_to_string. Work around it by using a temporary buffer and then copying into the final destination. The compiler has been warning me about this one long enough...
show more ...
|
| 9b595061 | 14-Aug-2010 |
Alex Hornung <ahornung@gmail.com> |
cryptsetup - fix buffer overflow
* fix a buffer overflow introduced during the porting. Linux originally did digest = gcry_md_read(hd, hash_id); memcpy(dst, digest, len); I ported that to do EVP
cryptsetup - fix buffer overflow
* fix a buffer overflow introduced during the porting. Linux originally did digest = gcry_md_read(hd, hash_id); memcpy(dst, digest, len); I ported that to do EVP_DigestFinal directly into dst, causing corruption. Avoid this by writing to some intermediate (large) buffer and then using memcpy like Linux does.
show more ...
|