[PATCH] Allow initialization of Asan interceptors before the general Asan initialization takes place on FreeBSD

Kostya Serebryany kcc at google.com
Wed Jul 16 03:16:38 PDT 2014


nice loop. 
Maybe we could break the loop by calling internal_strncmp? 

INTERCEPTOR(int, strncmp, const char *s1, const char *s2, uptr size) {
  if (COMMON_INTERCEPTOR_NOTHING_IS_INITIALIZED)
     return internal_strncmp(s1, s2, size);

we have a couple of similar hacks elsewhere

http://reviews.llvm.org/D4496






More information about the llvm-commits mailing list