DragonFly BSD
DragonFly commits List (threaded) for 2012-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: crypt(3) - Paper over sizeof()/strlen() bug causing 32/64-bit issues


From: Samuel Greear <sjg@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 20 Jan 2012 12:03:49 -0800 (PST)

commit 5108d56f29e4e338650bc6fd479474ae383acb46
Author: Samuel J. Greear <sjg@thesjg.com>
Date:   Fri Jan 20 13:04:56 2012 -0700

    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.

Summary of changes:
 lib/libcrypt/deprecated-crypt-sha256.c |   21 ++++++++++++++++-----
 lib/libcrypt/deprecated-crypt-sha512.c |   21 ++++++++++++++++-----
 2 files changed, 32 insertions(+), 10 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5108d56f29e4e338650bc6fd479474ae383acb46


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]