crypt(3) - Paper over sizeof()/strlen() bug causing 32/64-bit issues
authorSamuel J. Greear <sjg@thesjg.com>
Fri, 20 Jan 2012 20:04:56 +0000 (13:04 -0700)
committerSamuel J. Greear <sjg@thesjg.com>
Fri, 20 Jan 2012 20:04:56 +0000 (13:04 -0700)
commit5108d56f29e4e338650bc6fd479474ae383acb46
tree2c41b7b0059e01c7e5444a65d5b9e8651ab77f4a
parent8dc94ed93ffbc226e763c57586630a988aa57331
crypt(3) - Paper over sizeof()/strlen() bug causing 32/64-bit issues

* In one place sizeof() was used instead of strlen(), causing the password
  to be muxed with 4 bytes of random stack data on 64-bit machines. Codify
  this behavior for reverse compatibility.
lib/libcrypt/deprecated-crypt-sha256.c
lib/libcrypt/deprecated-crypt-sha512.c