[Bug 1854326] [NEW] [UBUNTU] - glibc: z15 (s390x) strstr implementation can return incorrect result if search string cross page boundary
Launchpad Bug Tracker
1854326 at bugs.launchpad.net
Thu Nov 28 09:00:42 UTC 2019
You have been subscribed to a public bug:
glibc: strstr(): Invalid result if needle crosses page on s390-z15 ifunc variant.
If the specified needle crosses a page-boundary, the s390-z15 ifunc variant of
strstr truncates the needle which results in invalid results.
Example:
needle = "Hello" <page-boundary> "World"
really used needle = "Hello"
haystack = "abc HelloBug def"
result = "HelloBug def"
This only happens if the needle before page-boundary contains 9 or less
characters.
See upstream-glibc bugzilla "Bug 25226 - strstr: Invalid result if needle crosses page on s390-z15 ifunc variant."
(https://sourceware.org/bugzilla/show_bug.cgi?id=25226)
Fixed with upstream-glibc commit "S390: Fix handling of needles crossing a page in strstr z15 ifunc-variant. [BZ #25226]"
(https://sourceware.org/git/?p=glibc.git;a=commit;h=bfdb731438206b0f70fe7afa890681155c30b419)
Please backport this commit to Ubuntu 19.10, which includes glibc 2.30
Already backported to upstream-glibc-release-branch-2.30:
https://sourceware.org/git/?p=glibc.git;a=commit;h=f4419b0d0181da28f18cba40068f2e75300f5020
glibc 2.31 (tentativ GA 2020-02-01) will have this fix integrated.
If this version will not be picked finally, than this fix is also needed for 20.04
** Affects: glibc (Ubuntu)
Importance: Undecided
Assignee: Skipper Bug Screeners (skipper-screen-team)
Status: New
** Tags: architecture-s39064 bugnameltc-182602 severity-high targetmilestone-inin1910
--
[UBUNTU] - glibc: z15 (s390x) strstr implementation can return incorrect result if search string cross page boundary
https://bugs.launchpad.net/bugs/1854326
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to glibc in Ubuntu.
More information about the foundations-bugs
mailing list