Home GnuPG
Diffusion GnuPG 09f2a7bca624

common: Don't incorrectly reject 4 GB - 1 sized packets.
09f2a7bca624Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

common: Don't incorrectly reject 4 GB - 1 sized packets.

* 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>.

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Aug 21 2015, 11:55 AM
Parents
rG4f37820334fa: common: Don't assume on-disk layout matches in-memory layout.
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rG09f2a7bca624: common: Don't incorrectly reject 4 GB - 1 sized packets. (authored by Neal H. Walfield <neal@g10code.com>).Aug 21 2015, 2:21 PM