[Bug string/22603] ia64 memchr overflows internal pointer check

joseph at codesourcery dot com sourceware-bugzilla@sourceware.org
Thu Dec 14 14:21:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=22603

--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
It's not invalid to pass such a size if you know the character is there - 
C11 says "The implementation shall behave as if it reads the characters 
sequentially and stops as soon as a matching character is found." - but 
it's certainly unusual for code to use such sizes.

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


More information about the Glibc-bugs mailing list