1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* iobuf.c (block_filter): Properly handle a partial body stream that ends

with a 5-byte length.
This commit is contained in:
David Shaw 2003-12-25 03:20:21 +00:00
parent 986db050c4
commit e872c35cfa
2 changed files with 6 additions and 0 deletions

View file

@ -665,6 +665,7 @@ block_filter(void *opaque, int control, IOBUF chain, byte *buf, size_t *ret_len)
break;
}
a->size |= c;
a->partial = 2;
}
else { /* next partial body length */
a->size = 1 << (c & 0x1f);