Closed (fixed)
Project:
Flexifilter
Version:
7.x-1.x-dev
Component:
Code - Components
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2012 at 10:21 UTC
Updated:
25 Jan 2013 at 23:20 UTC
It is possible to enter some special search/replace pattern and get an infinite loop on the text view. For example, if we use "[" as search pattern and "[[" for a replacement then we're in trouble: loop will never finish and script will be killed by timeout (if any). So, I've reworked problematic part of code to guarantee single pass of the string, it protects from infinite loop.
| Comment | File | Size | Author |
|---|---|---|---|
| 0001-Fix-infinite-loop-in-text-pattern-replace-component.patch | 2.62 KB | dmitriy.trt |
Comments
Comment #1
dmitriy.trt commentedComment #2
johannesjvorstermans commentedWorks well for me. Just had to remove the last /** from the patch.
Be good to get this into the dev version asap.
Comment #3
jarodms commentedcommitted to dev.