pkgsrc-WIP-changes archive

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

compiler-rt-netbsd: compiler-rt-netbsd: Start splitting posix and netbsd code



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Aug 27 13:52:28 2017 +0200
Changeset:	43b3262d20ee16178a19f7422efe2a2f3bbdae01

Modified Files:
	compiler-rt-netbsd/distinfo
Added Files:
	compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__common__interceptors.inc

Log Message:
compiler-rt-netbsd: compiler-rt-netbsd: Start splitting posix and netbsd code

On demand from upstream split NetBSD from sanitizer_platform_limits_posix.h.

Part 6.

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=43b3262d20ee16178a19f7422efe2a2f3bbdae01

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

diffstat:
 compiler-rt-netbsd/distinfo                        |  1 +
 ...zer__common_sanitizer__common__interceptors.inc | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diffs:
diff --git a/compiler-rt-netbsd/distinfo b/compiler-rt-netbsd/distinfo
index b9038eebe4..1a93c22309 100644
--- a/compiler-rt-netbsd/distinfo
+++ b/compiler-rt-netbsd/distinfo
@@ -22,6 +22,7 @@ SHA1 (patch-lib_fuzzer_afl_afl__driver.cpp) = a114e28152558b7147d0931eb638109c3d
 SHA1 (patch-lib_fuzzer_tests_CMakeLists.txt) = eaffd9f8f2621ad465b5c734a764bdff0243af3d
 SHA1 (patch-lib_lsan_lsan__interceptors.cc) = 04cb038163d9d9eb098666d394bfca38e9f78a2f
 SHA1 (patch-lib_sanitizer__common_CMakeLists.txt) = e031b35f1cbdcc95184f9cae81c548b9b8aa32fd
+SHA1 (patch-lib_sanitizer__common_sanitizer__common__interceptors.inc) = db4ed1ac4b21906c23c159e63ce8efe7edbb5afa
 SHA1 (patch-lib_sanitizer__common_sanitizer__linux.h) = bcf367307bc52f1185a099fdb488c1e6f485dbde
 SHA1 (patch-lib_sanitizer__common_sanitizer__platform__interceptors.h) = f179544393a9a884ab669c10f323539f80d8efad
 SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cc) = 98a40050b48f94f6dc2a8bfba05f9fb3e062b216
diff --git a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__common__interceptors.inc b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__common__interceptors.inc
new file mode 100644
index 0000000000..0a8264eda3
--- /dev/null
+++ b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__common__interceptors.inc
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- lib/sanitizer_common/sanitizer_common_interceptors.inc.orig	2017-08-03 21:24:37.000000000 +0000
++++ lib/sanitizer_common/sanitizer_common_interceptors.inc
+@@ -4114,6 +4114,9 @@ INTERCEPTOR(int, shmctl, int shmid, int 
+   // https://github.com/google/sanitizers/issues/321.
+   int res = REAL(shmctl)(shmid, cmd, buf);
+   if (res >= 0) {
++#if SANITIZER_NETBSD
++    unsigned sz = struct_shminfo_sz;
++#else
+     unsigned sz = 0;
+     if (cmd == shmctl_ipc_stat || cmd == shmctl_shm_stat)
+       sz = sizeof(__sanitizer_shmid_ds);
+@@ -4121,6 +4124,7 @@ INTERCEPTOR(int, shmctl, int shmid, int 
+       sz = struct_shminfo_sz;
+     else if (cmd == shmctl_shm_info)
+       sz = struct_shm_info_sz;
++#endif
+     if (sz) COMMON_INTERCEPTOR_WRITE_RANGE(ctx, buf, sz);
+   }
+   return res;


Home | Main Index | Thread Index | Old Index