1
0
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:
Werner Koch 2009-06-17 10:36:12 +00:00
parent e9a1d6da83
commit 275ad3fa26
2 changed files with 7 additions and 2 deletions

View File

@ -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.

View File

@ -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) );