This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug string/25226] strstr: Invalid result if needle crosses page on s390-z15 ifunc variant.

--- Comment #1 from cvs-commit at gcc dot <cvs-commit at gcc dot> ---
The master branch has been updated by Stefan Liebler <>:;h=bfdb731438206b0f70fe7afa890681155c30b419

commit bfdb731438206b0f70fe7afa890681155c30b419
Author: Stefan Liebler <>
Date:   Wed Nov 27 12:35:40 2019 +0100

    S390: Fix handling of needles crossing a page in strstr z15 ifunc-variant.
[BZ #25226]

    If the specified needle crosses a page-boundary, the s390-z15 ifunc variant
    strstr truncates the needle which results in invalid results.

    This is fixed by loading the needle beyond the page boundary to v18 instead
of v16.
    The bug is sometimes observable in test-strstr.c in check1 and check2 as
    haystack and needle is stored on stack. Thus the needle can be on a page

    check2 is now extended to test haystack / needles located on stack, at end
of page
    and on two pages.

    This bug was introduced with commit
    ("S390: Add arch13 strstr ifunc variant.") and is already released in glibc

You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]