Subject: PR/36662 CVS commit: src/common/lib/libc/hash
To: None <joerg@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,>
From: Joerg Sonnenberger <joerg@netbsd.org>
List: pkgsrc-bugs
Date: 07/18/2007 14:00:10
The following reply was made to PR pkg/36662; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36662 CVS commit: src/common/lib/libc/hash
Date: Wed, 18 Jul 2007 13:57:54 +0000 (UTC)

 Module Name:	src
 Committed By:	joerg
 Date:		Wed Jul 18 13:57:54 UTC 2007
 
 Modified Files:
 	src/common/lib/libc/hash/rmd160: rmd160.c
 	src/common/lib/libc/hash/sha2: sha2.c
 
 Log Message:
 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.
 
 
 To generate a diff of this commit:
 cvs rdiff -r1.2 -r1.3 src/common/lib/libc/hash/rmd160/rmd160.c
 cvs rdiff -r1.4 -r1.5 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.