Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Aug 2008 09:50:55 +0400
From:      Yuri Pankov <yuri.pankov@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   regex regression?
Message-ID:  <20080819055055.GC1758@darklight.homeunix.org>

next in thread | raw e-mail | index | archive | help
Hi,

Looks like regcomp() doesn't detect invalid backreferences on
-CURRENT, though it works normally on 6.3-RELEASE.

simple testcase:

6.3-RELEASE:
$ echo test | sed 's/test/\1/'
sed: 1: "s/test/\1/": \1 not defined in the RE

-CURRENT:
$ echo test | sed 's/test/\1/'
Segmentation fault (core dumped)


Yuri



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