[Varnish] #1086: VGZ_WrwGunzip loops forever if receiving junk data after end of gzip data
Varnish
varnish-bugs at varnish-cache.org
Wed Jul 3 05:55:12 CEST 2013
#1086: VGZ_WrwGunzip loops forever if receiving junk data after end of gzip data
----------------------+---------------------
Reporter: martin | Owner: martin
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: 3.0.2
Severity: normal | Resolution:
Keywords: |
----------------------+---------------------
Comment (by lgx):
3.0.3 has the same problem.
The reason is, VGZ_WrwGunzip dones't process the return code VGZ_END of
VGZ_Gunzip.
So it will loop forever at this situation.
I think the fix would be:
if (i < VGZ_OK) {
/* XXX: VSL ? */
return (-1);
}
+ else if(i == VGZ_END)
+ {
+ break;
+ }
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1086#comment:10>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list