Skip to content

Commit a66a569

Browse files
author
David Pierson
committed
Changed NTFS Extra Data min length to 4 in ZipEntry
1 parent fa996e2 commit a66a569

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Zip/ZipEntry.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
// HISTORY
4141
// 22-12-2009 DavidPierson Added AES support
42+
// 02-02-2010 DavidPierson Changed NTFS Extra Data min length to 4
4243

4344
using System;
4445
using System.IO;
@@ -980,7 +981,7 @@ internal void ProcessExtraData(bool localHeader)
980981

981982
if ( extraData.Find(10) ) {
982983
// No room for any tags.
983-
if ( extraData.ValueLength < 8 ) {
984+
if ( extraData.ValueLength < 4 ) {
984985
throw new ZipException("NTFS Extra data invalid");
985986
}
986987

0 commit comments

Comments
 (0)