From: "Barak A. Pearlmutter" Date: Mon, 24 Jun 2013 18:05:04 +0100 Subject: fix-whirlpool-segfault Via: git://pkgs.fedoraproject.org/mhash.git Taken from Gentoo: http://mirror.its.uidaho.edu/pub/gentoo-portage/app-crypt/mhash/files/mhash-0.9.9-fix-whirlpool-segfault.patch --- lib/whirlpool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/whirlpool.c b/lib/whirlpool.c index 36e36df..4d5e138 100644 --- a/lib/whirlpool.c +++ b/lib/whirlpool.c @@ -970,6 +970,8 @@ void whirlpool_digest(__const struct whirlpool_ctx * ctx, mutils_word8 * digest) { mutils_word32 i; + + if(!digest) return; /* * return the completed message digest: */