AmendHub

jcs

/

subtext

/

amendments

/

zip.c

Amendments on March 27, 2023

zip: Make zip_read_file return an error code depending on failure

This way the caller can differentiate between a temporary malloc
failure and a permanent "this zip file is busted".
jcs made amendment 455 about 1 year ago

Amendments on March 15, 2023

zip: Tweak log messages

jcs made amendment 424 about 1 year ago

Amendments on March 13, 2023

zip: Use xmalloc/xfree, it's no longer fatal

jcs made amendment 406 about 1 year ago

Amendments on March 8, 2023

zip: Remove unused variable

jcs made amendment 382 about 1 year ago

Amendments on March 5, 2023

zip: Add zip_is_zip_file

jcs made amendment 358 about 1 year ago

Amendments on February 28, 2023

zip: Fix GET_* macros on large lengths

jcs made amendment 326 about 1 year ago

Amendments on February 23, 2023

zip: Add PKZIP parser, using puff for inflating

This only supports a small subset of the giant PKZIP format spec, but
it's enough to read archives that use a compression type of 8
(inflate). It requires two callbacks, one for deciding whether to
process each file as it is encountered, and one for processing the
in-memory buffer of decompressed data.
jcs made amendment 311 about 1 year ago