summaryrefslogtreecommitdiff
path: root/libc/stdio/stdio_ext.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2014-07-30 16:06:56 -0700
committerChristopher Ferris <cferris@google.com>2014-07-30 16:06:56 -0700
commite03e1eac0b7682884b6628df1305d34299680cb4 (patch)
treecd92bbdbf9b9ae464da7b46d25c01fe6bf5c1ad9 /libc/stdio/stdio_ext.cpp
parent4ad5066e1de326e5db46df18eeade9a88bc11bec (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
Diffstat (limited to 'libc/stdio/stdio_ext.cpp')
0 files changed, 0 insertions, 0 deletions