Home GnuPG
Diffusion GnuPG 960f5e26f2cd

gpg: More carefully encode a packet's length.
960f5e26f2cdUnpublished

Unpublished Commit ยท Learn More

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

Description

gpg: More carefully encode a packet's length.

* g10/build-packet.c (write_header2): Make sure the length bits are
cleared.  Fail if HDRLEN is set and the specified length can't be
encoded in the available space.
  • Signed-off-by: Neal H. Walfield <neal@g10code.com>

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Feb 25 2016, 9:20 PM
Parents
rG105a5629c7e9: gpg: Avoid directly twiddling bits.
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rG960f5e26f2cd: gpg: More carefully encode a packet's length. (authored by Neal H. Walfield <neal@g10code.com>).Feb 25 2016, 9:20 PM