regex regression?

Stanislav Sedov stas at FreeBSD.org
Tue Aug 19 07:10:16 UTC 2008


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

> 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)
>

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

-- 
Stanislav Sedov
ST4096-RIPE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080819/40d87086/attachment.pgp


More information about the freebsd-current mailing list