Bug 143281

Summary: Content extensions should properly handle regexes that match everything
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: WebCore Misc.Assignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch benjamin: review+

Alex Christensen
Reported 2015-03-31 16:27:24 PDT
Right now, when you only have regexes that match everything, infinite loops happen. Let's make it safer, faster, and more correct!
Attachments
Patch (35.85 KB, patch)
2015-03-31 17:13 PDT, Alex Christensen
benjamin: review+
Alex Christensen
Comment 1 2015-03-31 17:13:41 PDT
Benjamin Poulain
Comment 2 2015-03-31 17:59:51 PDT
Comment on attachment 249870 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=249870&action=review > Source/WebCore/contentextensions/CombinedURLFilters.cpp:205 > + if (!nfas.size()) > + nfas.append(NFA()); I think I would do this in the ExtensionCompiler only if there are universal actions.
Alex Christensen
Comment 3 2015-04-02 12:44:50 PDT
Note You need to log in before you can comment on or make changes to this bug.