Home GnuPG
Diffusion GnuPG ed8383c618e1

sm: Avoid double-free on iconv failure
ed8383c618e1Unpublished

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
wernerCommitted on Dec 22 2014, 2:00 PM
Parents
rGb0b3803e8c29: scd: Avoid double-free on error condition in scd
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGed8383c618e1: sm: Avoid double-free on iconv failure (authored by Daniel Kahn Gillmor <dkg@fifthhorseman.net>).Dec 22 2014, 2:00 PM