[PATCH] [Sanitizers] Intercept snprintf_l() on FreeBSD

Viktor Kutuzov vkutuzov at accesssoftek.com
Wed Nov 26 05:15:37 PST 2014


Hi kcc, samsonov, eugenis, emaste,

In contrast to Linux, FreeBSD does not omit the *printf_l() functions so we have to intercept them. Particularly, libcxx leverage snprintf_l() for verbalization of numeric values. Since gtest use the standard i/o streams, we get mass false positives on Msan unit tests.

http://reviews.llvm.org/D6418

Files:
  lib/sanitizer_common/sanitizer_common_interceptors.inc
  lib/sanitizer_common/sanitizer_platform_interceptors.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6418.16647.patch
Type: text/x-patch
Size: 3567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141126/8ba30690/attachment.bin>


More information about the llvm-commits mailing list