Attached is a reproducer adapted from the regression test included with newer libgcrypt versions. Compiled with `cc -o hashtest hashtest.c -lgcrypt` it will die with an assertion in the error case.
Bad: $ ./hashtest Ohhhh jeeee: Assertion `count < bsize' failed (../../cipher/keccak.c:864:keccak_write) Aborted (core dumped) $
Good: $ ./hashtest $
Attached is a reproducer adapted from the regression test included with newer libgcrypt versions. Compiled with `cc -o hashtest hashtest.c -lgcrypt` it will die with an assertion in the error case.
Bad: cipher/ keccak. c:864:keccak_ write)
$ ./hashtest
Ohhhh jeeee: Assertion `count < bsize' failed (../../
Aborted (core dumped)
$
Good:
$ ./hashtest
$