Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Aug 2008 10:49:23 +0400
From:      Stanislav Sedov <stas@FreeBSD.org>
To:        Yuri Pankov <yuri.pankov@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: regex regression?
Message-ID:  <20080819104923.b2274b5e.stas@FreeBSD.org>
In-Reply-To: <20080819055055.GC1758@darklight.homeunix.org>
References:  <20080819055055.GC1758@darklight.homeunix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Signature=_Tue__19_Aug_2008_10_49_23_+0400_kZ1uu/7CeDM65YWl
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, 19 Aug 2008 09:50:55 +0400
Yuri Pankov <yuri.pankov@gmail.com> mentioned:

> Hi,
>=20
> Looks like regcomp() doesn't detect invalid backreferences on
> -CURRENT, though it works normally on 6.3-RELEASE.
>=20
> simple testcase:
>=20
> 6.3-RELEASE:
> $ echo test | sed 's/test/\1/'
> sed: 1: "s/test/\1/": \1 not defined in the RE
>=20
> -CURRENT:
> $ echo test | sed 's/test/\1/'
> Segmentation fault (core dumped)
>

7-STABLE is also affected. Seems that regression was in r171284.

--=20
Stanislav Sedov
ST4096-RIPE

--Signature=_Tue__19_Aug_2008_10_49_23_+0400_kZ1uu/7CeDM65YWl
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkiqbPkACgkQK/VZk+smlYFKNACbB6ex3w54xnTZGIt+JN3hJL6r
KjkAmwfDAlLCpm9E2zpHvv1yrNIMiIkU
=1FE0
-----END PGP SIGNATURE-----

--Signature=_Tue__19_Aug_2008_10_49_23_+0400_kZ1uu/7CeDM65YWl--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080819104923.b2274b5e.stas>