Home GnuPG
Diffusion GnuPG 596ae9f5433c

gpg: Fix use of uninit.value in listing sig subpkts.
596ae9f5433cUnpublished

Unpublished Commit · Learn More

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

Description

gpg: Fix use of uninit.value in listing sig subpkts.

* g10/parse-packet.c (dump_sig_subpkt): Print regex subpacket
sanitized.

We may not use "%s" to print an arbitrary buffer. At least "%.*s"
should have been used. However, it is in general preferable to escape
control characters while printf user data.

  • Reported-by: Hanno Böck
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Nov 24 2014, 6:05 PM
Parents
rG0988764397f9: gpg: Fix off-by-one read in the attribute subpacket parser.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG596ae9f5433c: gpg: Fix use of uninit.value in listing sig subpkts. (authored by Werner Koch <wk@gnupg.org>).Nov 24 2014, 6:05 PM