Package: mhash
Version: 0.9.9.9-1
Severity: normal
Tags: patch pending
Dear maintainer,
I've prepared an NMU for mhash (versioned as 0.9.9.9-1.1) and
uploaded it to DELAYED/7. Please feel free to tell me if I
should delay it longer.
Regards.
--
Kind regards,
Loong Jin
diff -u mhash-0.9.9.9/debian/changelog mhash-0.9.9.9/debian/changelog
--- mhash-0.9.9.9/debian/changelog
+++ mhash-0.9.9.9/debian/changelog
@@ -1,3 +1,10 @@
+mhash (0.9.9.9-1.1) unstable; urgency=low
+
+ * NMU
+ * lib/{whirlpool,snefru}.c: Fix mhash_deinit segfaults when digest is NULL
+
+ -- Chow Loong Jin <[email protected]> Mon, 09 Jan 2012 20:32:32 +0800
+
mhash (0.9.9.9-1) unstable; urgency=low
* New upstream version.
only in patch2:
unchanged:
--- mhash-0.9.9.9.orig/lib/snefru.c
+++ mhash-0.9.9.9/lib/snefru.c
@@ -859,6 +859,9 @@
{
mutils_word32 i;
+ if (!digest)
+ return;
+
for (i = 0; i < len; i++, digest += 4)
{
*(mutils_word32 *)digest = mutils_bend2sys32(ctx->hash[i]);
only in patch2:
unchanged:
--- mhash-0.9.9.9.orig/lib/whirlpool.c
+++ mhash-0.9.9.9/lib/whirlpool.c
@@ -970,6 +970,10 @@
mutils_word8 * digest)
{
mutils_word32 i;
+
+ if (!digest)
+ return;
+
/*
* return the completed message digest:
*/