Home GnuPG
Diffusion GnuPG ea28ea18f3ee

gpg: Fix memory leaking for long inputs via --command-fd.

Description

gpg: Fix memory leaking for long inputs via --command-fd.

* g10/cpr.c (do_get_from_fd): Free the old buffer.

If the received input is longer than 200 characters we used to leak
the previous allocated buffer.

  • GnuPG-bug-id: T3528
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Nov 22 2017, 8:54 PM
Parents
rG0bb7fd0cab2d: scd: Enable card removal check after select_application.
Branches
Unknown
Tags
Unknown
Tasks
T3528: cpr.c do_get_from_fd memory leak