Home GnuPG
Diffusion GnuPG 2d359681f089

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

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.

(backported from commit 596ae9f5433ca3b0e01f7acbe06fd2e424c42ae8)

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

Details

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

Event Timeline

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