TZipper: Corrupted Compression
Original Reporter info from Mantis: dgaspary @dgaspary
-
Reporter name: Daniel Gaspary
Original Reporter info from Mantis: dgaspary @dgaspary
- Reporter name: Daniel Gaspary
Description:
When Compressing small strings zipper is enlarging the files and is no longer respecting the Compression Level = Store(clNone).
This problem doesn't happen with fpc 2.6.2 .
Steps to reproduce:
1 - Compile and Run the attached example;
2 - At Console, run: unzip -v /tmp/zipper_FpcTrunk.zip
You gonna get:
Length Method Size Cmpr
-------- ------ ------- ----
4 Defl:N 6 -50%
4 Defl:S 9 -125%
Performing the same steps with fpc 2.6.2 you get:
Length Method Size Cmpr
-------- ------ ------- ----
4 Stored 4 0%
4 Stored 4 0%
Additional information:
Guessing.. : Something was broken trying to implement zip64 support?
Mantis conversion info:
- Mantis ID: 24897
- OS: Linux
- OS Build: Ubuntu
- Platform: x86-64
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 25567 (#c3476067)
- Monitored by: » BigChimp (Reinier Olislagers)