mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-23 21:59:57 +01:00
* armor.c (radix64_read): No armor CRC is legal according to the spec (the
CRC is a MAY).
This commit is contained in:
parent
f7a793ae28
commit
52a83025e9
@ -1,3 +1,8 @@
|
||||
2004-08-05 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* armor.c (radix64_read): No armor CRC is legal according to the
|
||||
spec (the CRC is a MAY).
|
||||
|
||||
2004-07-28 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* misc.c (argsplit): Properly split quoted args from the keyword
|
||||
|
@ -771,7 +771,11 @@ radix64_read( armor_filter_context_t *afx, IOBUF a, size_t *retn,
|
||||
if( c == -1 ) {
|
||||
log_info(_("premature eof (in CRC)\n"));
|
||||
rc = invalid_crc();
|
||||
}
|
||||
}
|
||||
else if( idx == 0 ) {
|
||||
/* No CRC at all is legal ("MAY") */
|
||||
rc=0;
|
||||
}
|
||||
else if( idx != 4 ) {
|
||||
log_info(_("malformed CRC\n"));
|
||||
rc = invalid_crc();
|
||||
|
Loading…
x
Reference in New Issue
Block a user