gpg: Fix a NULL-deref in export due to invalid packet lengths.
authorWerner Koch <wk@gnupg.org>
Thu, 12 Feb 2015 17:54:17 +0000 (18:54 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 12 Feb 2015 17:54:17 +0000 (18:54 +0100)
commit8da836e76f1349f4587d1bb74864b11dde7b8a39
tree06a8ce65db50a09444a336abc17447f77a3a13c7
parent7e12ec4c7d6df29a7d7935399fccd2594ebb4a7e
gpg: Fix a NULL-deref in export due to invalid packet lengths.

* g10/build-packet.c (write_fake_data): Take care of a NULL stored as
opaque MPI.
--

Reported-by: Hanno Böck <hanno@hboeck.de>
(back ported from commit 0835d2f44ef62eab51fce6a927908f544e01cf8f)
g10/build-packet.c