We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4818aa commit 66070d4Copy full SHA for 66070d4
1 file changed
src/GZip/GzipInputStream.cs
@@ -37,7 +37,8 @@
37
// exception statement from your version.
38
39
// HISTORY
40
-// 11-08-2009 GeoffHart T9121 Added Multi-member gzip support
+// 2009-08-11 T9121 Geoff Hart Added Multi-member gzip support
41
+// 2012-06-03 Z-1802 Incorrect endianness in FEXTRA handling
42
43
using System;
44
using System.IO;
@@ -279,7 +280,7 @@ bit 7 reserved
279
280
headCRC.Update(len1);
281
headCRC.Update(len2);
282
- int extraLen = (len1 << 8) | len2;
283
+ int extraLen = (len2 << 8) | len1; // gzip is LSB first
284
for (int i = 0; i < extraLen;i++) {
285
int readByte = inputBuffer.ReadLeByte();
286
if (readByte < 0)
0 commit comments