Menu

#876 regex filter crash

version 3.0.21
closed-invalid
nobody
None
5
2016-03-21
2014-05-26
webarrow
No

Hello,

privoxy version: 3.0.21
system: Windows 7 SP1 64-bit

when i use this filter, privoxy will crash.

user.filter:
FILTER: script-filter
s@<script(?:\s+[^>]*)?>((?!<script)[\s\S])*(?:_gaq.push)([\s\S]*?)<\/script\s*>@@ig

test html file and filter file in attachments.

1 Attachments

Discussion

  • Fabian Keil

    Fabian Keil - 2014-05-27

    Thanks for the report, but this is not a Privoxy bug.

    The filter is causing pcre to run out of stack space. You'll have to rewrite the pattern to reduce the match recursion (and thus the required stack space), increase the stack space or recompile pcre to use the heap instead. For details see the pcrestack man page.

    Privoxy TODO item #120 is relevant, but not yet implemented:
    http://ijbswa.cvs.sourceforge.net/viewvc/ijbswa/current/TODO?view=markup#l337

     
  • Fabian Keil

    Fabian Keil - 2016-03-21
    • status: open --> closed-invalid
     

Log in to post a comment.