Page MenuHome GnuPG

hmac256.c: use of memory after it is freed (redux)
Closed, ResolvedPublic

Description

/usr/local/bin/scan-build/ccc-analyzer -DHAVE_CONFIG_H -I. -I.. -DSTANDALONE
-g3 -O1 -fvisibility=hidden -Wall -MT hmac256-hmac256.o -MD -MP -MF
.deps/hmac256-hmac256.Tpo -c -o hmac256-hmac256.o `test -f 'hmac256.c' || echo
'./'`hmac256.c

hmac256.c:499:7: warning: Use of memory after it is freed

_gcry_hmac256_release (hd);
^~~~~~~~~~~~~~~~~~~~~~~~~~

hmac256.c:621:11: warning: Use of memory after it is freed

_gcry_hmac256_release (hmachd);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2 warnings generated.

Note: this is a different finding than the 1904 bug.

Details

Version
1.6.3

Event Timeline

JW added projects: libgcrypt, Bug Report.
JW added a subscriber: JW.

No c+p of warnings please! Use gnupg-devel for such things.

werner claimed this task.
werner added a project: Mistaken.