Home GnuPG

cipher: Fix possible NULL dereference.
8a0d51411fbeUnpublished

Unpublished Commit · Learn More

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

Description

cipher: Fix possible NULL dereference.

* cipher/md.c (_gcry_md_selftest): Check for spec being NULL.

Also removed left-over code in unused file cipher/test-getrusage.c.

Found by Hans-Christoph Steiner with cppcheck.

Details

Provenance
wernerAuthored on Apr 15 2014, 4:40 PM
Parents
rC6868d7d5239c: Fix ARMv6 detection when CFLAGS modify target CPU architecture
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC8a0d51411fbe: cipher: Fix possible NULL dereference. (authored by Werner Koch <wk@gnupg.org>).Apr 16 2014, 3:05 PM