From: miker Date: Tue, 7 Aug 2007 15:28:44 +0000 (+0000) Subject: Patch from Scott McKellar to protect SHA-1 against an off-by-one bug X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=17a14823115819e46bf424ed5f0982a0f00ad377;p=opensrf%2Fbjwebb.git Patch from Scott McKellar to protect SHA-1 against an off-by-one bug git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1076 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/libopensrf/sha.c b/src/libopensrf/sha.c index 14791bd..c48a4c9 100644 --- a/src/libopensrf/sha.c +++ b/src/libopensrf/sha.c @@ -208,7 +208,7 @@ char *shahash(const char *str) INT64 length=0; int strsz; - static char final[40]; + static char final[41]; int *hashval; hashval = (int *)malloc(20);