mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-21 19:48:05 +01:00
* iobuf.c (block_filter): Properly handle a partial body stream that ends
with a 5-byte length that happens to be zero.
This commit is contained in:
parent
5be5a9bbfd
commit
49b6b71919
@ -1,3 +1,8 @@
|
||||
2004-03-01 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* iobuf.c (block_filter): Properly handle a partial body stream
|
||||
that ends with a 5-byte length that happens to be zero.
|
||||
|
||||
2004-02-24 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* secmem.c (lock_pool) [_AIX]: Also set errno.
|
||||
|
@ -666,6 +666,12 @@ block_filter(void *opaque, int control, IOBUF chain, byte *buf, size_t *ret_len)
|
||||
}
|
||||
a->size |= c;
|
||||
a->partial = 2;
|
||||
if( !a->size ) {
|
||||
a->eof = 1;
|
||||
if( !n )
|
||||
rc = -1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else { /* next partial body length */
|
||||
a->size = 1 << (c & 0x1f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user