Red Hat Bugzilla – Bug 643341
memmem, strstr, and strcasestr are broken
Last modified: 2016-11-24 11:04:45 EST
This bug has been copied from bug #641128 and has been proposed to be backported to 6.0 z-stream (EUS).
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.
The bug was false positive matches, not false negatives. I updated the technical note accordingly.
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.
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