gpg: Fix use of uninit.value in listing sig subpkts.
authorWerner Koch <wk@gnupg.org>
Mon, 24 Nov 2014 17:05:45 +0000 (18:05 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 24 Nov 2014 17:05:45 +0000 (18:05 +0100)
commit596ae9f5433ca3b0e01f7acbe06fd2e424c42ae8
tree830acb8312e6625d5717622ed4ec800a3616cf36
parent0988764397f99db4efef1eabcdb8072d6159af76
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>
g10/parse-packet.c