Diffusion GnuPG ea28ea18f3ee

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

Authored by werner on Nov 22 2017, 8:54 PM.

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