[PATCH] Testcase for another regex bug]

Ulrich Drepper drepper@redhat.com
Fri Sep 27 22:10:00 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Isamu Hasegawa wrote:

> The problem was that there are some defects in the evaluations of back
> references.  And I needed to restructure these evaluations.
> (I'm sorry for such a big patch.)

Thanks, I've applied the patch.  Looks good.


> However, it might not be a sufficient patch, since dc.sed of sed-3.02
> seems to fall infinite loop.
> On the other hand, perhaps it might not be a bug, because the infinite
> loop of dc.sed seems not to be in regex but in the dc.sed script, and
> the behavior of regex was a bit changed from old regex.
>   (e.g. Executing the following command returns the result "NG".
>    $ echo aa | sed 's/\(a\+\)\{3\}/NG/'
>    However, "\(a\+\)\{3\}" shouldn't match with "aa", should it?
>    We fix these some dubious behaviors, and it might prevent dc.se
>    from desirable behavior.)

This indeed shouldn't match.  If dc.sed relies on this it's broken.


- -- 
- ---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9lTl92ijCOnn/RHQRAtWtAKC+D/jEEzmmk6wlg6zspHaOMNZuVQCfTvSZ
QOi6GVEakdpAdciAosngG9k=
=KZQj
-----END PGP SIGNATURE-----



More information about the Libc-alpha mailing list