Firefox silently fails to decode more than 16 nested Content-Encoding: gzip,gzip...

UNCONFIRMED
Unassigned

Status

()

Core
Networking: HTTP
P5
normal
UNCONFIRMED
2 years ago
4 months ago

People

(Reporter: WGH, Unassigned)

Tracking

({testcase})

38 Branch
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [necko-would-take])

(Reporter)

Description

2 years ago
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
Build ID: 20160207155849

Steps to reproduce:

http://a-raspberry-pi-among-the-flower-pots.torlan.ru/hello.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz
http://a-raspberry-pi-among-the-flower-pots.torlan.ru/hello.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz

The server sends "Hello world" string encoded with gzip multiple times.
Content-Encoding is set to "gzip,gzip,gzip,..." (appropriate number of times).


Actual results:

The first link opens fine. The second one displays garbage.


Expected results:

I do admit that there should be sensible limit for nested Content-Encodings, however, Firefox should display a error message instead of returning garbage to the user.

Updated

2 years ago
Component: Untriaged → Networking: HTTP
Keywords: testcase
Product: Firefox → Core
Whiteboard: [necko-would-take]
You need to log in before you can comment on or make changes to this bug.