Commit 61833de6 authored by Christopher Ferris's avatar Christopher Ferris
Browse files

Fix memchr with a zero length.

The memchr implementation for 64 bit fails if these conditions occur:

- The buffer is 32 byte aligned.
- The buffer contains the character in the first byte.
- The count sent in is zero.

The function should return NULL, but it's not.

Bug: 16676625

(cherry picked from commit e03e1eac)

Change-Id: Ie4cca2c445127a0936ee2b96651a8e7204fbaffd
parent 4f76469e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment