-
-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor fixes and improvements minideflate #1175
Conversation
Still not quite right for some reason. |
Heh, good thing CI doesn't invoke that tool. |
Codecov Report
@@ Coverage Diff @@
## develop #1175 +/- ##
===========================================
+ Coverage 81.99% 87.17% +5.18%
===========================================
Files 97 112 +15
Lines 9080 9646 +566
Branches 1440 2444 +1004
===========================================
+ Hits 7445 8409 +964
+ Misses 1068 988 -80
+ Partials 567 249 -318
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Uhm, it seems this is wrong actually. According to documentation, windowbits should be: So, doesn't that mean that we were already doing deflate with adler32? |
0157605
to
4992822
Compare
@Dead2 it looks like you are correct about the If you still get the |
Ok, I still get the error, and I guess I should have looked a bit closer at what is happening, because it is obvious it will error out when told to decompress an empty file.. (Maybe we should handle that somehow?) However, this also made me discover a little problem with file names. Another problem is that it also adds the extension when decompressing. So An alternative is to also require an output filename as the last parameter, then the user (or our tests) will have to select the name instead. This would probably save a lot of logic to handle the output filename, but probably still smart to just check that input and output are not the same file. I would like to see a |
I see no reason why we shouldn't have |
Yes I noticed there was no |
I guess that should perhaps be made clear somehow then, because that differs from how minigzip and many other compression utils works :) |
…late will now delete the input file.
ff5fb67
to
a6f78d6
Compare
…ssing and remove extension from output file path when decompressing.
a6f78d6
to
0dabee8
Compare
0dabee8
to
1d5b786
Compare
@nmoinvaz Did you do testing of the new features? If so, then LGTM. |
I did test it while developing. I also tested that each extension was appended properly during compression and removed during decompression. And also tested the auto-wrapper stuff for inflate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Changes since 2.0.6: - Fix CVE-2022-37434 #1328 - Fix chunkmemset #1196 - Fix deflateBound too small #1236 - Fix Z_SOLO #1263 - Fix ACLE variant of crc32 #1274 - Fix inflateBack #1311 - Fix deflate_quick windowsize #1431 - Fix DFLTCC bugs related to adler32 #1349 and #1390 - Fix warnings #1194 #1312 #1362 - MacOS build fix #1198 - Add invalid windowBits handling #1293 - Support for Force TZCNT #1186 - Support for aligned_alloc() #1360 - Minideflate improvements #1175 #1238 - Dont use unaligned access for memcpy #1309 - Build system #1209 #1233 #1267 #1273 #1278 #1292 #1316 #1318 #1365 - Test improvements #1208 #1227 #1241 #1353 - Cleanup #1266 - Documentation #1205 #1359 - Misc improvements #1294 #1297 #1306 #1344 #1348 - Backported zlib fixes - Backported CI workflows from Develop branch
Changes since 2.0.6: - Fix CVE-2022-37434 #1328 - Fix chunkmemset #1196 - Fix deflateBound too small #1236 - Fix Z_SOLO #1263 - Fix ACLE variant of crc32 #1274 - Fix inflateBack #1311 - Fix deflate_quick windowsize #1431 - Fix DFLTCC bugs related to adler32 #1349 and #1390 - Fix warnings #1194 #1312 #1362 - MacOS build fix #1198 - Add invalid windowBits handling #1293 - Support for Force TZCNT #1186 - Support for aligned_alloc() #1360 - Minideflate improvements #1175 #1238 - Dont use unaligned access for memcpy #1309 - Build system #1209 #1233 #1267 #1273 #1278 #1292 #1316 #1318 #1365 - Test improvements #1208 #1227 #1241 #1353 - Cleanup #1266 - Documentation #1205 #1359 - Misc improvements #1294 #1297 #1306 #1344 #1348 - Backported zlib fixes - Backported CI workflows from Develop branch
No description provided.