Skip to content

Commit 05449a0

Browse files
committed
Z-1744 Use only the low order byte of "Version Needed to Extract"
1 parent ecc88a1 commit 05449a0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/Zip/ZipEntry.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@
3838
// exception statement from your version.
3939

4040
// HISTORY
41-
// 22-12-2009 DavidPierson Added AES support
42-
// 02-02-2010 DavidPierson Changed NTFS Extra Data min length to 4
41+
// 2009-12-22 Z-1649 Added AES support
42+
// 2010-02-02 DavidP Changed NTFS Extra Data min length to 4
43+
// 2012-06-03 Z-1744 Use only the low order byte of "Version Needed to Extract"
4344

4445
using System;
4546
using System.IO;
@@ -558,7 +559,7 @@ public int Version
558559
get {
559560
// Return recorded version if known.
560561
if (versionToExtract != 0) {
561-
return versionToExtract;
562+
return versionToExtract & 0x00ff; // Only lower order byte. High order is O/S file system.
562563
}
563564
else {
564565
int result = 10;

0 commit comments

Comments
 (0)