Search code examples
cstackstack-smashmachine-codethttpd

What does __interceptor_strchr do?


my function crashes(due to stack overrun) right after this machine instruction:

0x00000000004b1e4c <read_config+188>:  e8 3f 85 fa ff  callq  0x45a390 <__interceptor_strchr(char const*, int)>

What does __interceptor_strchr(char const*, int) do?


Solution

  • This looks like part of LLVM's AddressSanitizer error detector.