Subject: PR/36662 CVS commit: [netbsd-4] src/common/lib/libc/hash
To: None <joerg@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,>
From: Liam J. Foy <liamjfoy@netbsd.org>
List: pkgsrc-bugs
Date: 07/18/2007 20:25:04
The following reply was made to PR pkg/36662; it has been noted by GNATS.
From: "Liam J. Foy" <liamjfoy@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/36662 CVS commit: [netbsd-4] src/common/lib/libc/hash
Date: Wed, 18 Jul 2007 20:20:28 +0000 (UTC)
Module Name: src
Committed By: liamjfoy
Date: Wed Jul 18 20:20:28 UTC 2007
Modified Files:
src/common/lib/libc/hash/rmd160 [netbsd-4]: rmd160.c
src/common/lib/libc/hash/sha2 [netbsd-4]: sha2.c
Log Message:
Pull up following revision(s) (requested by joerg in ticket #776):
common/lib/libc/hash/sha2/sha2.c: revision 1.5
common/lib/libc/hash/sha2/sha2.c: revision 1.6
common/lib/libc/hash/rmd160/rmd160.c: revision 1.3
Fix SIGBUS issues on strict alignment issues. Use le32dec in RMD160
as the data pointer to RMD160_Update doesn't have to be aligned.
In SHA256_Update and SHA512_Update, only operate directly on the passed
in data if no left-over in the context exists and the data is correctly
aligned. The problem was exposed by the audit-packages rewrite in C
and reported for the libnbcompat version in PR pkg/36662.
cast to void* to avoid a fatal warning
To generate a diff of this commit:
cvs rdiff -r1.2 -r1.2.4.1 src/common/lib/libc/hash/rmd160/rmd160.c
cvs rdiff -r1.2.4.2 -r1.2.4.3 src/common/lib/libc/hash/sha2/sha2.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.