[ ijbswa-Bugs-3484388 ] img-reorder hangs on large data: URI images

SourceForge.net <[email protected]>
Newsgroups gmane.comp.web.privoxy.devel
Message-ID <[email protected]>
Bugs item #3484388, was opened at 2012-02-04 08:43
Message generated for change (Comment added) made by fabiankeil
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111118&aid=3484388&group_id=11118

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: funct: filtering
Group: None
>Status: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: Incognito (iloppi)
>Assigned to: Fabian Keil (fabiankeil)
Summary: img-reorder hangs on large data: URI images

Initial Comment:
img-reorder filter hangs (or takes a very long time (core at 100%)) on pages with large in-line data: URI images using data: URI scheme.
Example: http://dopiaza.org/tools/datauri/data-uri-examples/
Tested on 3.0.19 on Windows 7 64bit.

----------------------------------------------------------------------

>Comment By: Fabian Keil (fabiankeil)
Date: 2012-02-08 05:56

Message:
Thanks for the report.

It looks like more recent PCRE versions already "solve" this with the
internal match limit:
14:53:42.869 029 Error: Skipped filter 'privoxy-filter-test' after job
number 5: (pcre:) Match limit reached (-8)

Unfortunately we can't rely on a more recent PCRE version being available,
so I'll look into this.

----------------------------------------------------------------------

Comment By: Incognito (iloppi)
Date: 2012-02-04 09:20

Message:
Upon further testing, banners-by-size has similar problems with large
enough images.

Easy solution would be to put some reasonable limits on the match size in
the regexps.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111118&aid=3484388&group_id=11118

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.