Home GnuPG
Diffusion GnuPG ced689e12a50

sm: Avoid double-free on iconv failure
ced689e12a50Unpublished

Unpublished Commit · Learn More

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

Description

sm: Avoid double-free on iconv failure

* sm/minip12.c: (p12_build) if jnlib_iconv_open fails, avoid
double-free of pwbuf.

Observed by Joshua Rogers <honey@internot.info>, who proposed a
slightly different fix.

Added fix at a second place - wk.

Details

Provenance
dkgAuthored on Dec 20 2014, 12:53 AM
gniibeCommitted on Jan 13 2015, 2:52 AM
Parents
rG0fd4cd8503df: scd: Avoid double-free on error condition in scd
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rGced689e12a50: sm: Avoid double-free on iconv failure (authored by Daniel Kahn Gillmor <dkg@fifthhorseman.net>).Jan 13 2015, 2:52 AM