mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-27 02:56:18 -04:00
7e5e05ca60
Without this patch, ELinks showed garbage at <http://www.dwheeler.com/oss_fs_why.html> when bzip2 decompression was enabled. safe_read() in bzip2_read() did not see all of the body bytes that ELinks had received from the server. After bzip2_read() received EAGAIN from safe_read() and returned 0, something skipped 1460 bytes. decompress_data() apparently assumed that read_encoded() returning 0 meant the end of the file, and returned even though len still was nonzero, i.e. it had not yet written to the pipe all the data that the caller (read_chunked_http_data() or read_normal_http_data()) had provided. The caller did not know this, and discarded the data. |
||
---|---|---|
.. | ||
bzip2.c | ||
bzip2.h | ||
deflate.c | ||
deflate.h | ||
encoding.c | ||
encoding.h | ||
lzma.c | ||
lzma.h | ||
Makefile |