https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124905

--- Comment #3 from Drea Pinski <pinskia at gcc dot gnu.org> ---
The big question is what is the C standard requirement here for memchr, is it
that all of the array from 0...size needs to be valid or not? I think the
standard does say that and requires that. So in theory memchr could find the
first occurrence and still read up to size too.

Reply via email to