Bug 234031 - broken parsing of xlen in gzip rfc 1952 r=mcmanus

This commit is contained in:
Ten Thumbs 2015-12-16 16:33:40 -05:00
parent 603ea0d273
commit 00946babd9

View File

@ -569,7 +569,7 @@ nsHTTPCompressConv::check_header(nsIInputStream *iStr, uint32_t streamLen, nsres
case GZIP_EXTRA1:
iStr->Read(&c, 1, &unused);
streamLen--;
mLen = ((uInt) c & 0377) << 8;
mLen |= ((uInt) c & 0377) << 8;
mSkipCount = 0;
hMode = GZIP_EXTRA2;
break;