[msan] Fix open_memstream handling.
For open_memstream() files, buffer pointer is only valid immediately after fflush() or fclose(). Fix the fclose() interceptor to unpoison after the REAL(fclose) call, not before it. llvm-svn: 242535
Showing
- compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc 7 additions, 8 deletions...rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
- compiler-rt/test/sanitizer_common/TestCases/Linux/open_memstream.cc 21 additions, 9 deletions...t/test/sanitizer_common/TestCases/Linux/open_memstream.cc
Loading
Please register or sign in to comment