https://bugs.kde.org/show_bug.cgi?id=403899

--- Comment #2 from Stefan Brüns <stefan.bru...@rwth-aachen.de> ---
Git commit ce749a2cb1bccc02f89cfe3536207d71b8cf0657 by Stefan Brüns.
Committed on 30/03/2025 at 19:03.
Pushed by bruns into branch 'master'.

kzip: Add various test cases

testZip64NestedStored: Verify KZip does not trip over the signatures of
the nested ZIP file, but only uses the signatures/headers of the outer
file.

testZip64NestedStoredStreamed: Verify KZip does not trip over the
signatures of the nested ZIP file, but only uses the signatures/headers
of the outer file. Currently fails, as data descriptors of the inner file
are taken instead of the outer ones.

testZip64EndOfCentralDirectory: Zip64 files may contain "Zip64 end
of central directory record"s, with signature "PK\6\6". Currently fails.

testZip64DataDescriptor: Zip64 data descriptors use 64 bit fields
for compressed and uncompressed size instead of the normal 32 bit fields,
thus the next record offset differs by 8 bytes. Currently fails.

The new files have been created with Info-ZIP `zip`:

> echo -ne "abcd" | zip zip64_end_of_central_directory.zip -

> echo -ne "abcd" | zip - - | cat > zip64_datadescriptor.zip
> zip - zip64_datadescriptor.zip zip64_end_of_central_directory.zip \
  | cat > zip64_nested_stored_streamed.zip
Related: bug 450597

A  +-    --    autotests/data/zip64_datadescriptor.zip
A  +-    --    autotests/data/zip64_end_of_central_directory.zip
A  +-    --    autotests/data/zip64_nested_stored_streamed.zip
M  +94   -0    autotests/karchivetest.cpp
M  +4    -0    autotests/karchivetest.h

https://invent.kde.org/frameworks/karchive/-/commit/ce749a2cb1bccc02f89cfe3536207d71b8cf0657

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to