regex regression?

From: Yuri Pankov <yuri.pankov_at_gmail.com>
Date: Tue, 19 Aug 2008 09:50:55 +0400
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
Received on Tue Aug 19 2008 - 04:18:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:33 UTC