diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-10-24 11:04:51 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-10-24 11:43:10 +0300 |
commit | b88b2178d40147be6c28dd9b97905ee1dc5366d5 (patch) | |
tree | 8f1a94cdb277dd7cd2b4b6bb7ac9d23180ffe608 /lib/formats.c | |
parent | ebf5a4e7c87e411fd0c436dff82737cfce77f20d (diff) | |
download | rpm-b88b2178d40147be6c28dd9b97905ee1dc5366d5.tar.gz rpm-b88b2178d40147be6c28dd9b97905ee1dc5366d5.tar.bz2 rpm-b88b2178d40147be6c28dd9b97905ee1dc5366d5.zip |
Valid PGP packets are always at least two bytes long
- Old format tags encode the number of body length bytes in the packet
header, new format encodes it in the first body length byte. In
both cases there must be at least two bytes worth of data for it
to be a valid header. Sanity check before accessing.
Diffstat (limited to 'lib/formats.c')
0 files changed, 0 insertions, 0 deletions