DescriptionProvide consistent behaviour for memchr(_,_,0)
A memchr() search of a zero-byte range returns an undefined value.
On arm32 it always returns NULL, but on arm64 it does not. This
causes random crashes while reading /proc/self/maps when loading the
64-bit libchrome.
Fix by setting the value to which memchr() assigns to NULL if the
search range is zero bytes. There are three calls to memchr(). Two
of them could encounter this; the third is safe.
BUG=394306
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284693
Patch Set 1 #
Total comments: 1
Messages
Total messages: 5 (0 generated)
|