clp
clp copied to clipboard
clp: Infinite loop when compressing zip archive.
Bug
An infinite loop is detected when compressing a zip archive that contains Android logs. By looking into the execution flow, it turns out that it gets stuck in this infinite loop: https://github.com/y-scope/clp/blob/v0.1.0/components/core/src/clp/LibarchiveFileReader.cpp#L38. This is because the current code doesn't handle the case where the data block in the LibArchiveFileReader
has a length of 0.
CLP version
v0.1.0
Environment
macOS 14.2 ubuntu Linux
Reproduction steps
The zip archive causing this bug contains private data so we can't upload it here. A zip file containing a 0-length data block will be required for reproduction.