[pcre-dev] [Bug 632] pcre_compile has no way to give length …

Inizio della pagina
Delete this message
Autore: Philip Hazel
Data:  
To: pcre-dev
Oggetto: [pcre-dev] [Bug 632] pcre_compile has no way to give length of source
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=632




--- Comment #3 from Philip Hazel <ph10@???> 2007-11-20 09:39:01 ---
On Mon, 19 Nov 2007, Sean Middleditch wrote:

> --- Comment #2 from Sean Middleditch <elanthis@???> 2007-11-19 18:20:17 ---
> I haven't looked at the source, so I didn't know it would be that hard. I
> can't imagine it being _that_ hard of a change, but I guess you'd know better
> than me. :)


The point is that in a number of places in the code, when it is scanning
along the pattern, it has code like

while (*ptr != 0) .....

or

(if *ptr == 0) ...

and no doubt written in other ways too. I don't know how many "a number"
actuall is. All those places will have to be found, and changed to
something like

while (ptr < cd->end_pattern) ....

Maybe "tedious" is a better adjective than "hard". I confess that I had
forgotten that end_pattern is already set up for newline testing; I had
thought it would have to be created, so not *quite* as much work as I
imagined. Of course, there is also the documentation to write.

I _have_ noted this request and will probably get to it in due course,
whenever that is. :-)

Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email