gpg: Fix use of uninit.value in listing sig subpkts.
authorWerner Koch <wk@gnupg.org>
Mon, 24 Nov 2014 18:24:47 +0000 (19:24 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 24 Nov 2014 18:27:20 +0000 (19:27 +0100)
commit1f9dfe1fedad215140011257d9b1bb21bc368179
tree84a28bdf24fe49e99739785566c5af23d3ca3cb0
parent7a068ac50bc48de26e93cfeadf412b37257f97d5
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>
(backported from commit 596ae9f5433ca3b0e01f7acbe06fd2e424c42ae8)
g10/parse-packet.c