From 17a14823115819e46bf424ed5f0982a0f00ad377 Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 7 Aug 2007 15:28:44 +0000 Subject: [PATCH] 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 --- src/libopensrf/sha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0