|
| From: | Eldar Abusalimov |
| Subject: | [bug #35410] [patch] Fix a bug with filter/filter-out functions when pattern contains only quoted percents |
| Date: | Sat, 03 Mar 2012 23:04:58 +0000 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Ubuntu/11.04 Chromium/17.0.963.56 Chrome/17.0.963.56 Safari/535.11 |
Follow-up Comment #2, bug #35410 (project make):
Oops, yes, I'm agree.
Another possible (and quite simple to apply it right now) optimization is to
use something like:
pat->length = len/2 + strlen(pat->str + len/2)
It seems to be safe as far as the string can't become shorter than a half of
the original one (the worst case is like '\%' -> '%').
The patch for the latest version from CVS is attached below. It also changes
the way of checking whether the called function is "filter" or "filter-out".
(file #25259)
_______________________________________________________
Additional Item Attachment:
File name: func_filter2.patch Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35410>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |