nils måsén

Results 390 comments of nils måsén

Reference zip file with backslash (`path\file`): ``` UEsDBBQAAAAAAA14uVIAAAAAAAAAAAAAAAAJAAAAcGF0aFxmaWxlUEsBAhQAFAAAAAAADXi5UgAA AAAAAAAAAAAAAAkAAAAAAAAAAAAAAAAAAAAAAHBhdGhcZmlsZVBLBQYAAAAAAQABADcAAAAnAAAA AAA= ```

Could you upload the generated zip file to https://archivediag.azurewebsites.net? I could generate it from the test as well, but I don't think I have the time to do it for...

Well, here is the report: https://pub.p1k.se/sharpziplib/archivediag/issue-698.zip.html The local header for the large entry has bit 4 (the `Descriptor` bit) set, which means that the actual size and CRC will follow...

I'm not sure exactly what `System.IO.Compression.ZipArchive` does here, but it seems like a bug in their end. But in any case, if you use `ICSharpCode.SharpZipLib.Zip.ZipFile` instead of `ZipInputStream` it will...

I altered your test code to use `ZipOutputStream` to generate the zip file, and it actually compressed it better (~25MiB vs ~50MiB), but slower (we are fully managed after all)....

This is highly unlikely to happen anytime soon.

You cannot get the length without decompressing the stream first. The only alternative would be to throw a `NotSupportedException` instead, which is probably more correct (and is what [`System.IO.Compression.GZipStream`](https://docs.microsoft.com/en-us/dotnet/api/system.io.compression.gzipstream.length?view=net-5.0#System_IO_Compression_GZipStream_Length) does)....

Well, the reason is that Descriptors are used for streaming data, where you might not know the file size before hand, or you cannot modify the stream to update the...

Regarding `ZipOutputStream`: The specification says that the CRC should be set to 0, but only for AE-2 and explicitly states that >NOTE: Zip utilities that support the AE-2 format are...