[PATCH] D19607: [sanitizer] Add early call handling to strchr + strrchr interceptors

Derek Bruening via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 13:52:51 PDT 2016


bruening added a comment.

In http://reviews.llvm.org/D19607#414342, @aizatsky wrote:

> Do these calls happen in libc? What's the reproducer? I wonder if there are any correctness implications because of this.


These are seen only with certain hooks invoked from tcmalloc on the dlsym() used in initializing interceptors.  The other sanitizers all either use a custom allocator or avoid tcmalloc, while we'd prefer to leave the app heap layout as-is to better study its memory behavior, explaining why this was not seen before.


http://reviews.llvm.org/D19607





More information about the llvm-commits mailing list