From peterjeremy@optushome.com.au  Wed Aug 10 10:25:37 2005
Return-Path: <peterjeremy@optushome.com.au>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5482516A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 10 Aug 2005 10:25:37 +0000 (GMT)
	(envelope-from peterjeremy@optushome.com.au)
Received: from mail15.syd.optusnet.com.au (mail15.syd.optusnet.com.au [211.29.132.196])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B265A43D49
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 10 Aug 2005 10:25:36 +0000 (GMT)
	(envelope-from peterjeremy@optushome.com.au)
Received: from server.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236])
	by mail15.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j7AAPYqA007558
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 10 Aug 2005 20:25:35 +1000
Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1])
	by server.vk2pj.dyndns.org (8.13.4/8.13.4) with ESMTP id j7AAPYDt038597;
	Wed, 10 Aug 2005 20:25:34 +1000 (EST)
	(envelope-from peter@server.vk2pj.dyndns.org)
Received: (from peter@localhost)
	by server.vk2pj.dyndns.org (8.13.4/8.13.1/Submit) id j7AAPY3p038596;
	Wed, 10 Aug 2005 20:25:34 +1000 (EST)
	(envelope-from peter)
Message-Id: <200508101025.j7AAPY3p038596@server.vk2pj.dyndns.org>
Date: Wed, 10 Aug 2005 20:25:34 +1000 (EST)
From: Peter Jeremy <peterjeremy@optushome.com.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: regcomp("\254") fails
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         84740
>Category:       bin
>Synopsis:       [libc] regcomp("\254") fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 10 10:30:18 GMT 2005
>Closed-Date:    Sat May 16 08:23:00 UTC 2009
>Last-Modified:  Sat May 16 08:23:00 UTC 2009
>Originator:     Peter Jeremy
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
n/a
>Environment:
System: FreeBSD server.vk2pj.dyndns.org 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Mon Aug 8 18:22:06 EST 2005 root@server.vk2pj.dyndns.org:/home/obj/k7/usr/src/sys/server i386

>Description:
	regcomp(3) fails to compile the string "\376" as an extended RE
	(but does handle it as a BRE) and reports "empty (sub)expression".
	This works correctly on 4.9 but fails on 5.3 and a recent -CURRENT.

>How-To-Repeat:

#include <sys/types.h>
#include <regex.h>
#include <stdlib.h>
#include <stdio.h>

int main(int argc, char **argv)
{
    char	buf[1024];
    int		r;
    regex_t	rx;

    r = regcomp(&rx, "\376", REG_EXTENDED);
    if (r != 0) {
	regerror(r, &rx, buf, sizeof(buf));
	printf("%s\n", buf);
    }
    exit(0);
}

>Fix:
	Unknown
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->tjr 
Responsible-Changed-By: tjr 
Responsible-Changed-When: Sat Aug 13 00:47:39 GMT 2005 
Responsible-Changed-Why:  
I'll take a look at this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84740 
State-Changed-From-To: open->patched 
State-Changed-By: tjr 
State-Changed-When: Sat Aug 13 02:30:31 GMT 2005 
State-Changed-Why:  
Fixed in -CURRENT with MFC to 5- and 6-STABLE scheduled for 1 week. 
Thanks for the report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84740 

From: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To: bug-followup@FreeBSD.org, peterjeremy@optushome.com.au
Cc:  
Subject: Re: kern/84740: [libc] regcomp("\254") fails
Date: Tue, 01 May 2007 11:26:29 +0100

 This was patched in src/lib/libc/regex/regex2.h revision 1.9 20 months
 ago, but never MFC'd.  tjr handed in his commit bit some weeks ago, so
 either this should be MFC'd by somebody else, or closed.
 http://docs.FreeBSD.org/cgi/mid.cgi?42FE05C8.1080600 suggests that the
 original code was incorrect, FWIW.
Responsible-Changed-From-To: tjr->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Tue Dec 11 07:14:19 UTC 2007 
Responsible-Changed-Why:  
Steal from tjr and try to get these things in where possible. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84740 

From: Peter Jeremy <peterjeremy@optushome.com.au>
To: FreeBSD-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org
Cc:  
Subject: Re: bin/84740: regcomp("\254") fails
Date: Sat, 16 May 2009 08:21:56 +1000

 --/WwmFnJnmDyWGHa4
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 This PR can probably be closed - it was committed to 7-current and
 MFCs to 5.x and 6.x are not really relevant any longer.
 
 --=20
 Peter Jeremy
 
 --/WwmFnJnmDyWGHa4
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.11 (FreeBSD)
 
 iEYEARECAAYFAkoN6wQACgkQ/opHv/APuIfpdACeKvZVFZGszgrfPwMmVm85QIWG
 4HIAnA/KMv5+nE2cMaH13FVQ6VWtQZNJ
 =63wj
 -----END PGP SIGNATURE-----
 
 --/WwmFnJnmDyWGHa4--
State-Changed-From-To: patched->closed 
State-Changed-By: remko 
State-Changed-When: Sat May 16 08:22:59 UTC 2009 
State-Changed-Why:  
peter jeremy reports that this had been resolved a long time ago 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84740 
>Unformatted:
