IndexOutOfRangeException in System.IO.Compression.ZipArchive #109167
Labels
area-System.IO.Compression
bug
in-pr
There is an active PR which will close this issue when it is merged
Milestone
Description
An IndexOutOfRangeException exception is thrown when invalid zip file is opened with ZipArchive.
Reproduction Steps
With "ZipArchive_IndexOutOfRangeException_001.zip" index is invalid in HuffmanTree.c:260:
array[index] = (short)ch;
With "ZipArchive_IndexOutOfRangeException_002.zip" index is invalid in HuffmanTree.c:220:
short value = array[index];
ZipArchive_IndexOutOfRangeException_001.zip
ZipArchive_IndexOutOfRangeException_002.zip
Expected behavior
InvalidDataException is thrown.
Actual behavior
IndexOutOfRangeException is thrown.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: