mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-01 20:18:44 +01:00
09f2a7bca6
* g10/parse-packet.c (parse): Don't reject 4 GB - 1 sized packets. Add the constraint that the type must be 63. * kbx/keybox-openpgp.c (next_packet): Likewise. * tests/openpgp/4gb-packet.asc: New file. * tests/openpgp/4gb-packet.test: New file. * tests/openpgp/Makefile.am (TESTS): Add 4gb-packet.test. (TEST_FILES): Add 4gb-packet.asc. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>.
17 lines
305 B
Bash
Executable File
17 lines
305 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. $srcdir/defs.inc || exit 3
|
|
|
|
# GnuPG through 2.1.7 would incorrect mark packets whose size is
|
|
# 2^32-1 as invalid and exit with status code 2.
|
|
i=$srcdir/4gb-packet.asc
|
|
|
|
if ! $GPG --list-packets $i
|
|
then
|
|
echo Failed to parse 4GB packet.
|
|
exit 1
|
|
else
|
|
echo Can parse 4GB packets.
|
|
exit 0
|
|
fi
|