Subject: PR/36662 CVS commit: [netbsd-4] src/common/lib/libc/hash
To: None <,,,>
From: Liam J. Foy <>
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" <>
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.