pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

compiler-rt-netbsd: Fix interceptor hooks for libfuzzer/NetBSD



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Wed May 9 02:24:12 2018 +0200
Changeset:	0233fca3c902a9c346eadfa89f50f58f1325e20d

Modified Files:
	compiler-rt-netbsd/distinfo
	compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__platform__interceptors.h

Log Message:
compiler-rt-netbsd: Fix interceptor hooks for libfuzzer/NetBSD

Tracked down by kcc @ google.
https://github.com/google/sanitizers/issues/956

********************
Testing Time: 117.22s
********************
Failing Tests (8):
    LLVMFuzzer :: merge-posix.test
    LLVMFuzzer :: strncmp.test
    LLVMFuzzer :: trace-malloc-threaded.test
    LLVMFuzzer :: trace-malloc-unbalanced.test
    LLVMFuzzer :: value-profile-cmp.test
    LLVMFuzzer :: value-profile-load.test
    LLVMFuzzer :: value-profile-set.test
    LLVMFuzzer :: value-profile-switch.test

  Expected Passes    : 99
  Unsupported Tests  : 8
  Unexpected Failures: 8

Sponsored by <The NetBSD Foundation>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0233fca3c902a9c346eadfa89f50f58f1325e20d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 compiler-rt-netbsd/distinfo                                  |  2 +-
 ...lib_sanitizer__common_sanitizer__platform__interceptors.h | 12 +++++++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diffs:
diff --git a/compiler-rt-netbsd/distinfo b/compiler-rt-netbsd/distinfo
index 13fbea3359..4dd3fc8748 100644
--- a/compiler-rt-netbsd/distinfo
+++ b/compiler-rt-netbsd/distinfo
@@ -13,7 +13,7 @@ SHA1 (patch-lib_msan_tests_msan__test.cc) = 8f0a40c51a200f5de107cac5bd47db87aeff
 SHA1 (patch-lib_sanitizer__common_sanitizer__common__interceptors.inc) = a89e76e65e7aa735e4f796505917b4993ccc2662
 SHA1 (patch-lib_sanitizer__common_sanitizer__internal__defs.h) = 91f645a6652d895e97b0aefbb62d80e680cd2c39
 SHA1 (patch-lib_sanitizer__common_sanitizer__linux.cc) = e4c889d8c140b06cb62429b37d56eca88feaaf03
-SHA1 (patch-lib_sanitizer__common_sanitizer__platform__interceptors.h) = 16926ba39d41178a49cfabd268ecece4d964170f
+SHA1 (patch-lib_sanitizer__common_sanitizer__platform__interceptors.h) = 68b2c9a1cb019c41d4e7eccadc47f891e7cbb4e9
 SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cc) = 0a5d94fff8dfe8cf62bcf2e269e33d52f8ac5137
 SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.h) = a5036c0da703ad178daded1994008756dcc99cf1
 SHA1 (patch-lib_sanitizer__common_sanitizer__procmaps__bsd.cc) = 8b629840ff7f56c670d322a9dbbdf7e33ce90cb5
diff --git a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__platform__interceptors.h b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__platform__interceptors.h
index 754b30fd4d..1bcccdd617 100644
--- a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__platform__interceptors.h
+++ b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__platform__interceptors.h
@@ -2,7 +2,17 @@ $NetBSD$
 
 --- lib/sanitizer_common/sanitizer_platform_interceptors.h.orig	2018-04-25 21:13:40.000000000 +0000
 +++ lib/sanitizer_common/sanitizer_platform_interceptors.h
-@@ -495,4 +495,10 @@
+@@ -425,7 +425,8 @@
+   (SI_LINUX || SI_MAC || SI_FREEBSD || SI_NETBSD || SI_OPENBSD || SI_SOLARIS)
+ #define SANITIZER_INTERCEPT_CTERMID_R (SI_MAC || SI_FREEBSD || SI_SOLARIS)
+ 
+-#define SANITIZER_INTERCEPTOR_HOOKS (SI_LINUX || SI_MAC || SI_WINDOWS)
++#define SANITIZER_INTERCEPTOR_HOOKS \
++  (SI_LINUX || SI_MAC || SI_WINDOWS || SI_NETBSD)
+ #define SANITIZER_INTERCEPT_RECV_RECVFROM SI_POSIX
+ #define SANITIZER_INTERCEPT_SEND_SENDTO SI_POSIX
+ #define SANITIZER_INTERCEPT_EVENTFD_READ_WRITE SI_LINUX
+@@ -495,4 +496,10 @@
  #define SANITIZER_INTERCEPT_PROTOENT SI_NETBSD
  #define SANITIZER_INTERCEPT_NETENT SI_NETBSD
  


Home | Main Index | Thread Index | Old Index