Bug 74359

Summary: regex (re_match) behavior changed
Product: [Retired] Red Hat Public Beta Reporter: Richard Hult <rhult>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED DUPLICATE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: nullCC: fweimer
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-09-21 17:55:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Test case to show that re_match doesn't work correctly none

Description Richard Hult 2002-09-21 17:53:03 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/20020809

Description of problem:
re_match doesn't seem to return the offset of the match from start, but from the
start of the entire string, which it did in rhl 7.3, and which also is the
documented behavior in regex.h

Version-Release number of selected component (if applicable):


How reproducible:
Always

I'll attach a test case.

Comment 1 Richard Hult 2002-09-21 17:54:57 UTC
Created attachment 76787 [details]
Test case to show that re_match doesn't work correctly

Comment 2 Jakub Jelinek 2002-09-21 17:59:16 UTC
This has been fixed already. See http://sources.redhat.com/ml/libc-hacker/2002-08/msg00152.html
You need glibc >= 2.2.90-27.

*** This bug has been marked as a duplicate of 72312 ***

Comment 3 Richard Hult 2002-09-21 18:19:45 UTC
Oh, I didn't find the bug when I searched. Thanks for the quick answer and great
work!