[Varnish] #1557: regsuball() doesn't honor lookahead assertion on repeated strings

Varnish varnish-bugs at varnish-cache.org
Tue Oct 14 00:52:20 UTC 2014


#1557: regsuball() doesn't honor lookahead assertion on repeated strings
--------------------------------------+---------------------
 Reporter:  varnish@…                 |       Owner:  martin
     Type:  defect                    |      Status:  closed
 Priority:  normal                    |   Milestone:
Component:  varnishd                  |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  lookahead pcre regsuball  |
--------------------------------------+---------------------
Changes (by Federico G. Schwindt <fgsch@…>):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [b9e53ea2ebbb59d739bb2307b16743a9179090a4]:
 {{{
 #!CommitTicketReference repository=""
 revision="b9e53ea2ebbb59d739bb2307b16743a9179090a4"
 Fix lookbehind handling in regsuball

 Do not advance the subject but use the ovector information as offset,
 pcre might need to peek back when handling lookbehinds.

 Original patch from MegaMaddin via github.

 Fixes: #1557
 }}}

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1557#comment:6>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list