[PATCH] D42883: Prevent recirsuve MSan interceptors in strftime(3) like functions
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 3 10:05:29 PST 2018
krytarowski created this revision.
krytarowski added reviewers: joerg, eugenis, vitalybuka.
krytarowski added a project: Sanitizers.
This corrects intercepting this call on NetBSD without false positives.
Sponsored by <The NetBSD Foundation>
Repository:
rL LLVM
https://reviews.llvm.org/D42883
Files:
lib/msan/msan_interceptors.cc
Index: lib/msan/msan_interceptors.cc
===================================================================
--- lib/msan/msan_interceptors.cc
+++ lib/msan/msan_interceptors.cc
@@ -514,6 +514,7 @@
#define INTERCEPTOR_STRFTIME_BODY(char_type, ret_type, func, s, ...) \
ENSURE_MSAN_INITED(); \
+ InterceptorScope interceptor_scope; \
ret_type res = REAL(func)(s, __VA_ARGS__); \
if (s) __msan_unpoison(s, sizeof(char_type) * (res + 1)); \
return res;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42883.132741.patch
Type: text/x-patch
Size: 570 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180203/fb831a7c/attachment.bin>
More information about the llvm-commits
mailing list