Home GnuPG

hmac: Fix memory leak
2bdc6614c866Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

hmac: Fix memory leak

* src/hmac.c: Release HMAC256 context

Cherry-picked the master commit of:
6994d874af865cc6ba95a8a6eb5a8fe048e88e07

LeakSanitizer marks the allocation of this context as leaked. Since the
hmac binary is used during the build with --enable-hmac-binary-check,
this fails the build with AddressSanitizer/LeakSanitizer.

  • Signed-off-by: Clemens Lang <cllang@redhat.com>

Details

Provenance
Clemens Lang via Gcrypt-devel <gcrypt-devel@lists.gnupg.org>Authored on Feb 11 2022, 4:55 PM
gniibeCommitted on Feb 14 2022, 7:18 AM
Parents
rCa60f8e43dd1b: fips: Fix memory leaks in FIPS mode
Branches
Unknown
Tags
Unknown

Event Timeline