Home GnuPG
Diffusion GnuPG d8eea25b8b7b

gpg: Fix buffering problem in --list-config.
d8eea25b8b7bUnpublished

Unpublished Commit · Learn More

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

Description

gpg: Fix buffering problem in --list-config.

* g10/gpg.c (list_config): Replace print_sanitized_string2 by
es_write_sanitized.
* common/stringhelp.c (print_sanitized_buffer2): Remove.
(print_sanitized_buffer, print_sanitized_utf8_buffer): Remove.
(print_sanitized_utf8_buffer, print_sanitized_utf8_string): Remove.
(print_sanitized_string): Remove.
* sm/certdump.c (print_dn_part, print_dn_parts): Remove arg FP.
(pretty_print_sexp, gpgsm_print_name2, gpgsm_print_name): Remove.

Mixing stdio and estream is never a good idea. This fix also allows
us to remove a lot of garbage.

  • Reported-by: Jason A. Donenfeld <Jason@zx2c4.com>
  • GnuPG-bug-id: T1822
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jan 28 2015, 8:12 PM
Parents
rG0c2bfd9d5a49: Add a hook to be called right after main.
Branches
Unknown
Tags
Unknown