[Varnish] #1249: Undeterministic results in regsub/regsuball
Varnish
varnish-bugs at varnish-cache.org
Fri Jan 11 05:51:47 CET 2013
#1249: Undeterministic results in regsub/regsuball
---------------------+--------------------
Reporter: arthens | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: build | Version: 3.0.3
Severity: normal | Resolution:
Keywords: |
---------------------+--------------------
Comment (by arthens):
One other detail is that regsub/regsuball only lose characters appearing
BEFORE the matched substring.
If you have the regexp:
{{{
(^|; ) *wcsid=[^;]+;? *
}}}
and the string
{{{
var1=value1; wcsid=wcsid-value; var2=value2
}}}
There are 2 possible results:
{{{
var1=value1; var2=value2 (when it works correctly)
}}}
and
{{{
var2=value2 (when it's bugged)
}}}
I have NEVER seen it lose:
- the characters following the match
- only a subset of the characters preceding the match
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1249#comment:2>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list