gpg: Fix use of uninit.value in listing sig subpkts.
authorWerner Koch <wk@gnupg.org>
Mon, 24 Nov 2014 18:41:46 +0000 (19:41 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 24 Nov 2014 18:41:46 +0000 (19:41 +0100)
commit2d359681f08999686734421228cb69893d8a0060
treead0a9fbf9b3a678abca196eac1c571e622034dd7
parent2b4809406b6536cbb67a2282bf855710b8454dc2
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