[llvm-commits] [ASan] Define an internal implementation of strchr to make stack OOB tests pass (issue 5668047)

Stephen Canon scanon at apple.com
Tue Feb 14 10:38:53 PST 2012


On Feb 14, 2012, at 1:30 PM, Timur Iskhodzhanov <timurrrr at google.com> wrote:

> On Tue, Feb 14, 2012 at 10:26 PM, Timur Iskhodzhanov
> <timurrrr at google.com> wrote:
>> On Tue, Feb 14, 2012 at 10:12 PM, Marshall Clow <mclow.lists at gmail.com> wrote:
>>> Isn't strchr defined to return a const char *?
>> Not in asan_interceptors.cc :369,  :380
> I'm surprised but "man strchr" actually shows "char *" return type on
> both Linux and Mac!

strchr( ) returns a char *.

7.21.5.2 The strchr function

Synopsis

     #include <string.h>
     char *strchr(const char *s, int c);

- Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120214/4d350df9/attachment.html>


More information about the llvm-commits mailing list