OSDN Git Service

FORTIFY_SOURCE: fortify strchr
authorNick Kralevich <nnk@google.com>
Fri, 30 Nov 2012 23:15:58 +0000 (15:15 -0800)
committerNick Kralevich <nnk@google.com>
Fri, 30 Nov 2012 23:19:15 +0000 (15:19 -0800)
commit049e58369c37fdeacd0380a6bf1e078d9baf819f
tree039599b75477a0759c69af2295e3dd20f293caff
parent16c61f088524756ef0fa1b030719f6745eaef2db
FORTIFY_SOURCE: fortify strchr

Detect when strchr reads off the end of a buffer.

Change-Id: I0e952eedcff5c36d646a9c3bc4e1337b959224f2
libc/include/string.h
libc/private/logd.h
libc/string/strchr.c