This is the mail archive of the glibc-bugs@sourceware.org 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 libc/17746] tilegx32: strstr can miss the end of the string


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

--- Comment #4 from Chris Metcalf <cmetcalf at ezchip dot com> ---
(In reply to Florian Weimer from comment #3)
> Can you clarify the impact of the bug?  Just one results from strstr, or a
> crash due to reading past the end of the string, or â?

If the "haystack" is near the end of allocated memory, the strstr() can miss
the end of the string and cause a SEGV.  Otherwise, strstr() will run on until
it finds either a match to the needle, or a NUL byte with address p, where (p &
4) == 0, i.e. it ignores half of the possible NUL bytes.

-- 
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]