/usr/src/gcc-4.7/debian/patches/pr24619.diff is in gcc-4.7-source 4.7.2-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # DP: Proposed patch for PR mudflap/24619 (instrumentation of dlopen)
--- a/src/libmudflap/mf-hooks2.c
+++ b/src/libmudflap/mf-hooks2.c
@@ -1674,8 +1674,10 @@
size_t n;
TRACE ("%s\n", __PRETTY_FUNCTION__);
n = strlen (path);
- MF_VALIDATE_EXTENT (path, CLAMPADD(n, 1), __MF_CHECK_READ, "dlopen path");
- p = dlopen (path, flags);
+ if (NULL != path) {
+ MF_VALIDATE_EXTENT (path, CLAMPADD(n, 1), __MF_CHECK_READ, "dlopen path");
+ p = dlopen (path, flags);
+ }
if (NULL != p) {
#ifdef MF_REGISTER_dlopen
__mf_register (p, 0, MF_REGISTER_dlopen, "dlopen result");
|