[PATCH] D18465: [sanitizer] Add memset, memmove, and memcpy to the common interceptors
Derek Bruening via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 24 15:43:18 PDT 2016
bruening created this revision.
bruening added a reviewer: vitalybuka.
bruening added subscribers: kcc, llvm-commits, zhaoqin.
Currently, sanitizer_common_interceptors.inc has an implicit, undocumented
assumption that the sanitizer including it has previously declared
interceptors for memset and memmove. Since the memset, memmove, and memcpy
routines require interception by many sanitizers, we add them to the
set of common interceptions, both to address the undocumented assumption
and to speed future tool development. They are intercepted under a new
The tsan interceptors are removed in favor of the new common versions. The
asan and msan interceptors for these are more complex (they incur extra
interception steps and their function bodies are exposed to the compiler)
so they opt out of the common versions and keep their own.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7732 bytes
Desc: not available
More information about the llvm-commits