pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
compiler-rt-netbsd: Plug dlerror() leak
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Thu Nov 23 07:44:25 2017 +0100
Changeset: f2e7c8cdcafb3e75ef5facfe927d2e14dce147ac
Modified Files:
compiler-rt-netbsd/distinfo
Added Files:
compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__symbolizer__posix__libcdep.cc
Log Message:
compiler-rt-netbsd: Plug dlerror() leak
https://reviews.llvm.org/D40382
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=f2e7c8cdcafb3e75ef5facfe927d2e14dce147ac
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 +
...anitizer__common_sanitizer__symbolizer__posix__libcdep.cc | 12 ++++++++++++
2 files changed, 13 insertions(+)
diffs:
diff --git a/compiler-rt-netbsd/distinfo b/compiler-rt-netbsd/distinfo
index 672dc14462..9c9707ac20 100644
--- a/compiler-rt-netbsd/distinfo
+++ b/compiler-rt-netbsd/distinfo
@@ -7,6 +7,7 @@ SHA1 (patch-lib_lsan_lsan__thread.cc) = 5cfc982f13ad8171fcd2859f2e37edef2f0e41b2
SHA1 (patch-lib_lsan_lsan__thread.h) = 5fbcc7fe73e619d88912413d99af2f4878ffeae6
SHA1 (patch-lib_msan_msan.h) = ce3f544490aebc1db73be9e3388f0a9d31d5b369
SHA1 (patch-lib_sanitizer__common_sanitizer__signal__interceptors.inc) = 30b8f64a9cb4362032d2d8fa936aef49c1c747de
+SHA1 (patch-lib_sanitizer__common_sanitizer__symbolizer__posix__libcdep.cc) = 65914439de83efc75bb4191219f85f92c72f0959
SHA1 (patch-lib_sanitizer__common_sanitizer__thread__registry.cc) = 38be2aa0785c5a17e682f36717fae45cf8596fbe
SHA1 (patch-lib_sanitizer__common_sanitizer__thread__registry.h) = 8b6ab550a34b4e8526a18e45ef6fc05af64e4c2a
SHA1 (patch-lib_tsan_rtl_tsan__interceptors.cc) = 6a17ddeb59952b4f15cbe2613b76a129659f52cc
diff --git a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__symbolizer__posix__libcdep.cc b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__symbolizer__posix__libcdep.cc
new file mode 100644
index 0000000000..d1610f349c
--- /dev/null
+++ b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__symbolizer__posix__libcdep.cc
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc.orig 2017-10-17 18:35:46.000000000 +0000
++++ lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
+@@ -77,6 +77,7 @@ static swift_demangle_ft swift_demangle_
+ // symbolication.
+ static void InitializeSwiftDemangler() {
+ swift_demangle_f = (swift_demangle_ft)dlsym(RTLD_DEFAULT, "swift_demangle");
++ (void)dlerror(); // Cleanup error message in case of failure
+ }
+
+ // Attempts to demangle a Swift name. The demangler will return nullptr if a
Home |
Main Index |
Thread Index |
Old Index