Bug#653072: [libmhash-dev] mhash_deinit causes segmentation fault with some algorithms

2012-01-09 Thread Chow Loong Jin
tags 653072 + patch thanks The segfaults happened due to the NULL in the mhash_deinit() call. The whirlpool and snefru implementations did not do a null check before attempting to write the hash to the address passed in. Double checking with the mhash(3) manpage shows that mhash_deinit() is

Bug#653072: [libmhash-dev] mhash_deinit causes segmentation fault with some algorithms

2011-12-23 Thread Mònica Ramírez Arceda
Package: libmhash-dev Version: 0.9.9.9-1 Severity: normal Hi, I tested this small program and got a segmentation fault: $ cat mh.c #include mhash.h #include stdio.h int main(void){ MHASH thread; thread = mhash_init(MHASH_WHIRLPOOL); mhash_deinit(thread,