mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
Fix bug#1040.
This commit is contained in:
parent
e9a1d6da83
commit
275ad3fa26
@ -1,3 +1,8 @@
|
||||
2009-06-17 Werner Koch <wk@g10code.com>
|
||||
|
||||
* parse-packet.c (parse): Use a casted -1 instead of a 32 bit
|
||||
constant to check for a garbled package. Fixes bug#1040.
|
||||
|
||||
2009-06-05 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* gpg.c (main): Remove Camellia restriction.
|
||||
|
@ -441,8 +441,8 @@ parse( IOBUF inp, PACKET *pkt, int onlykeypkts, off_t *retpos,
|
||||
}
|
||||
}
|
||||
|
||||
if (pktlen == 0xffffffff) {
|
||||
/* with a some probability this is caused by a problem in the
|
||||
if (pktlen == (unsigned long)(-1)) {
|
||||
/* With some probability this is caused by a problem in the
|
||||
* the uncompressing layer - in some error cases it just loops
|
||||
* and spits out 0xff bytes. */
|
||||
log_error ("%s: garbled packet detected\n", iobuf_where(inp) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user