mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Fix bug 1179
This commit is contained in:
parent
57528d38c0
commit
198c5c5587
7 changed files with 592 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
2010-05-12 Werner Koch <wk@g10code.com>
|
||||
|
||||
* armor.c (radix64_read): Change fix 2006-04-08 to fix bug#1179.
|
||||
|
||||
2010-05-07 Werner Koch <wk@g10code.com>
|
||||
|
||||
* import.c (chk_self_sigs): Check direct key signatures. Fixes
|
||||
|
|
|
@ -775,14 +775,14 @@ radix64_read( armor_filter_context_t *afx, IOBUF a, size_t *retn,
|
|||
if( !maxlen )
|
||||
afx->truncated++;
|
||||
if( !afx->buffer_len )
|
||||
break; /* eof */
|
||||
break; /* eof */
|
||||
continue;
|
||||
}
|
||||
|
||||
again:
|
||||
if( c == '\n' || c == ' ' || c == '\r' || c == '\t' )
|
||||
continue;
|
||||
else if( c == '=' ) { /* pad character: stop */
|
||||
else if( c == '=' ) { /* Pad character: stop or CRC sum starts. */
|
||||
/* some mailers leave quoted-printable encoded characters
|
||||
* so we try to workaround this */
|
||||
if( afx->buffer_pos+2 < afx->buffer_len ) {
|
||||
|
@ -801,8 +801,9 @@ radix64_read( armor_filter_context_t *afx, IOBUF a, size_t *retn,
|
|||
goto again;
|
||||
}
|
||||
}
|
||||
else if(n==0)
|
||||
onlypad=1;
|
||||
|
||||
if (!n)
|
||||
onlypad = 1;
|
||||
|
||||
if( idx == 1 )
|
||||
buf[n++] = val;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue