We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9df84c + d98d18e commit 3285f15Copy full SHA for 3285f15
1 file changed
src/Zip/ZipFile.cs
@@ -1023,7 +1023,7 @@ long TestLocalHeader(ZipEntry entry, HeaderTest tests)
1023
throw new ZipException(string.Format("Wrong local header signature @{0:X}", offsetOfFirstEntry + entry.Offset));
1024
}
1025
1026
- short extractVersion = ( short )ReadLEUshort();
+ short extractVersion = ( short ) (ReadLEUshort() & 0x00ff);
1027
short localFlags = ( short )ReadLEUshort();
1028
short compressionMethod = ( short )ReadLEUshort();
1029
short fileTime = ( short )ReadLEUshort();
0 commit comments