Bug 643341

Summary: memmem, strstr, and strcasestr are broken
Product: Red Hat Enterprise Linux 6 Reporter: RHEL Program Management <pm-rhel>
Component: glibcAssignee: Andreas Schwab <schwab>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.0CC: ebachalo, eblake, fweimer, jakub, jwest, pm-eus, pmuller, schwab, syeghiay
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: glibc-2.12-1.7.el6_0.1 Doc Type: Bug Fix
Doc Text:
Previously, the generic implementation of the strstr() and memmem() functions did not handle certain periodic patterns correctly and could find a false positive match. This error has been fixed, and both functions now work as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 18:57:37 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:
Bug Depends On: 641128    
Bug Blocks:    

Description RHEL Program Management 2010-10-15 11:01:52 UTC
This bug has been copied from bug #641128 and has been proposed
to be backported to 6.0 z-stream (EUS).

Comment 4 Jaromir Hradilek 2010-10-15 14:19:57 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously, the generic implementation of the strstr() and memmem() functions did not handle certain periodic patterns correctly and failed to find a match. This error has been fixed, and both functions now work as expected.

Comment 5 Eric Blake 2010-10-15 14:27:49 UTC
The bug was false positive matches, not false negatives.  I updated the
technical note accordingly.

Comment 6 Eric Blake 2010-10-15 14:27:49 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-Previously, the generic implementation of the strstr() and memmem() functions did not handle certain periodic patterns correctly and failed to find a match. This error has been fixed, and both functions now work as expected.+Previously, the generic implementation of the strstr() and memmem() functions did not handle certain periodic patterns correctly and could find a false positive match. This error has been fixed, and both functions now work as expected.

Comment 10 errata-xmlrpc 2010-11-10 18:57:37 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2010-0872.html