Uh oh!
There was an error while loading. Please reload this page.
Fix reading slightly incorrect Zip files - #68106
Conversation
ghost
commented
Apr 16, 2022
Tagging subscribers to this area: @dotnet/area-system-io-compression Issue DetailsFix #49580
|
danmoseley
commented
Apr 16, 2022
Also fix new SC test that will only pass elevated. cc @deeprobin -- our PR validation runs elevated, I believe. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
danmoseley
commented
Apr 17, 2022
Updated with full annotations added for the test zip, making clear what's going on. |
Uh oh!
There was an error while loading. Please reload this page.
danmoseley
commented
Apr 18, 2022
failures are #67349 |
danmoseley
commented
Apr 18, 2022
BTW @dotnet/area-system-io-compression are we aware of any public corpus of test zip files? Clearly, there is some variation in spec interpretations. If there was such a corpus, I could imagine we write a script to unzip them all with "main" and also with 6.0 and verify the same outputs/errors. That would reduce the risk of the #1094 experience we had. |
deeprobin
left a comment
There was a problem hiding this comment.
Some nits.
Looks overall good to me
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Robin Lindner <robin@deeprobin.de>
adamsitnik
left a comment
There was a problem hiding this comment.
Overall LGTM, I've left some comments, but all of them are just nits.
@danmoseley thanks a lot!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| Assert.Equal(6, entry.CompressedLength); // it should have used 32-bit size | ||
| } | ||
| private static readonly byte[] s_tinyZip64 = |
There was a problem hiding this comment.
nit: based on the description provided for the tests above, I think that "slightlyIncorrect" would be a better name than "tiny" here
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Adam Sitnik <adam.sitnik@gmail.com>
danmoseley
commented
Apr 20, 2022
@dotnet/dnceng seems an issue in dotnet-install.sh? |
ChadNedzlek
commented
Apr 20, 2022
@danmoseley. It does look like there is a bug with it, but that tool isn't written/maintained by dnceng. If you click the "report infrastructure issue" we could try and get it assigned to the right people. |
danmoseley
commented
Apr 20, 2022
My bad, thanks @ChadNedzlek and @missymessa |
missymessa
commented
Apr 20, 2022
No worries, thanks for using the new features :) |
* Add test that fails * fix * Fix test failing unelevated * annotate * overflow * Apply suggestions from code review Co-authored-by: Robin Lindner <robin@deeprobin.de> * Apply suggestions from code review Co-authored-by: Adam Sitnik <adam.sitnik@gmail.com> Co-authored-by: Robin Lindner <robin@deeprobin.de> Co-authored-by: Adam Sitnik <adam.sitnik@gmail.com>
Fix#49580