Home GnuPG
Diffusion GnuPG 1f9dfe1fedad

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

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:24 PM
Parents
rG7a068ac50bc4: gpg: Fix off-by-one read in the attribute subpacket parser.
Branches
Unknown
Tags
Unknown

Event Timeline

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