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

David CARLIER via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 21 07:46:14 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT349916: [Sanitizer] Enable strtonum in FreeBSD (authored by devnexen, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D55993?vs=179273&id=179290#toc

Repository:
  rCRT Compiler Runtime

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


Index: test/sanitizer_common/TestCases/NetBSD/strtonum.cc
===================================================================
--- test/sanitizer_common/TestCases/NetBSD/strtonum.cc
+++ test/sanitizer_common/TestCases/NetBSD/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.179290.patch
Type: text/x-patch
Size: 1084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181221/fcf18724/attachment.bin>


More information about the llvm-commits mailing list