You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jbulow@obiltschnig: is the case where the in stream is a Poco::Zip::ZipInputStream working on Poco 1.12.x branches? If not and this patch doesn't break another use-case, I'd ask you to add both the patch and the minimal test case to Poco 1.12.5 until someone volunteers to create a more comprehensive fix that also covers Poco::Zip::ZipInputStream.
At least right now there is at least one case broken that this patch does fix, and as long as this patch doesn't break currently working use-cases (which at least I couldn't see from the existing Poco tests IIRC), it should be a net improvement.
Describe the bug
When trying to add a small file to a zip archive from a Poco::MemoryInputStream via Compress::addFile(), not all bytes are added/compressed.
To Reproduce
run the following minimal test case with Poco 1.12.0 or 1.12.1:
only one byte instead of 4 bytes ends up in the output archive and the last assertion fails
Expected behavior
all 4 bytes are added to the file in the output archive and are compressed
Logs
n/a
Screenshots
n/a
Please add relevant environment information:
Additional context
The following patch fixes this (first change is for consistency reasons):
The text was updated successfully, but these errors were encountered: