[PATCH] D55993: [Sanitizer] Enable strtonum in FreeBSD

David CARLIER via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 21 05:18:04 PST 2018


devnexen updated this revision to Diff 179273.
devnexen retitled this revision from "[Sanitizer] Enable fparseln/strtonum in FreeBSD" to "[Sanitizer] Enable strtonum in FreeBSD".
devnexen edited the summary of this revision.

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55993/new/

https://reviews.llvm.org/D55993

Files:
  lib/sanitizer_common/sanitizer_platform_interceptors.h
  test/sanitizer_common/TestCases/NetBSD/strtonum.cc
  test/sanitizer_common/TestCases/Posix/strtonum.cc


Index: test/sanitizer_common/TestCases/Posix/strtonum.cc
===================================================================
--- test/sanitizer_common/TestCases/Posix/strtonum.cc
+++ test/sanitizer_common/TestCases/Posix/strtonum.cc
@@ -1,4 +1,6 @@
 // RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s
+//
+// UNSUPPORTED: linux, darwin, solaris
 
 #define _OPENBSD_SOURCE
 
Index: lib/sanitizer_common/sanitizer_platform_interceptors.h
===================================================================
--- lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -530,7 +530,7 @@
 #define SANITIZER_INTERCEPT_NL_LANGINFO (SI_NETBSD || SI_FREEBSD || SI_MAC)
 #define SANITIZER_INTERCEPT_MODCTL SI_NETBSD
 #define SANITIZER_INTERCEPT_CAPSICUM SI_FREEBSD
-#define SANITIZER_INTERCEPT_STRTONUM SI_NETBSD
+#define SANITIZER_INTERCEPT_STRTONUM (SI_NETBSD || SI_FREEBSD)
 #define SANITIZER_INTERCEPT_FPARSELN SI_NETBSD
 #define SANITIZER_INTERCEPT_STATVFS1 SI_NETBSD
 #define SANITIZER_INTERCEPT_STRTOI SI_NETBSD


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55993.179273.patch
Type: text/x-patch
Size: 1081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181221/19b132eb/attachment.bin>


More information about the llvm-commits mailing list