commit | e03e1eac0b7682884b6628df1305d34299680cb4 | [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:06:56 2014 -0700 |
tree | cd92bbdbf9b9ae464da7b46d25c01fe6bf5c1ad9 | |
parent | 4ad5066e1de326e5db46df18eeade9a88bc11bec [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 Change-Id: Iab33cc7a8b79920350c72f054dff0e0a3cde69ce