[PATCH] D54779: [Sanitizer] Adding setvbuf in supported platforms and other stream buffer functions
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 21 12:50:00 PST 2018
vitalybuka added inline comments.
================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:7309
COMMON_INTERCEPTOR_WRITE_RANGE(ctx, buf, size);
+ if (ret == 0)
+ unpoison_file(stream);
----------------
Please unpoison always
================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:7328
+ REAL(setbuffer)(stream, buf, mode);
+ if (buf) {
+ COMMON_INTERCEPTOR_WRITE_RANGE(ctx, buf, __sanitizer_bufsiz);
----------------
Please unpoison always
https://reviews.llvm.org/D54779
More information about the llvm-commits
mailing list