[cl-ppcre-devel] Re: CL-PPCRE bug found in do-scans

Edi Weitz edi at agharta.de
Tue Sep 28 23:14:12 UTC 2004


Hi Sébastien!

On Wed, 29 Sep 2004 00:23:50 +0200, Sébastien Saint-Sevin <seb at matchix.com> wrote:

> I think I found a bug when using do-scans :
>
> CL-USER 30 > (setq *scanner* (cl-ppcre:create-scanner "[0-9]-$"))
> #<closure 2060674A>
>
> CL-USER 31 > (cl-ppcre:do-scans (s e rs re *scanner* "simple string-"))
> NIL
>
> CL-USER 32 > (cl-ppcre:do-scans (s e rs re *scanner* "simple string 4-"))
> ==> infinite loop. 100% cpu. memory growing indefinitely.
>
> The same regex with a simple scan is OK :
>
> CL-USER 34 > (cl-ppcre:scan *scanner* "simple string 4-")
> 14
> 16
> #()
> #()

Which version of CL-PPCRE (current is 0.8.0) and which Lisp is this? I
can't reproduce this problem with CMUCL 19a or AllegroCL 7.0 beta.

Please use the mailing list for bug reports, thanks.

Cheers,
Edi.




More information about the Cl-ppcre-devel mailing list