commit | 61833de613990f2fdaf357bb3d854d72a4980890 | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Wed Jul 30 16:06:56 2014 -0700 |
committer | Christopher Ferris <cferris@google.com> | Wed Jul 30 16:33:11 2014 -0700 |
tree | 53d49b24ccef4c4cddb9f37b869cf364bf5ea8ea | |
parent | 4f76469e88e255bab1f8264e9ff8b95bff84365f [diff] |
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 e03e1eac0b7682884b6628df1305d34299680cb4) Change-Id: Ie4cca2c445127a0936ee2b96651a8e7204fbaffd