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