Home GnuPG
Diffusion GnuPG 5d1a9c4dc823

gpg: Fix possible out-of-bounds read in is_armored.
5d1a9c4dc823Unpublished

Unpublished Commit · Learn More

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

Description

gpg: Fix possible out-of-bounds read in is_armored.

* g10/armor.c (check_input): Call is_armored only if LEN >= 2.
(unarmor_pump): Use a 2 byte buffer for is_armored.

Details

Provenance
wernerAuthored on Jul 5 2016, 6:49 PM
Parents
rG8270580a5a70: tests: Honor environment variable 'TMP'.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG5d1a9c4dc823: gpg: Fix possible out-of-bounds read in is_armored. (authored by Werner Koch <wk@gnupg.org>).Jul 5 2016, 6:49 PM