diff options
Diffstat (limited to 'external/gpgmepp/asan.patch')
-rw-r--r-- | external/gpgmepp/asan.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/external/gpgmepp/asan.patch b/external/gpgmepp/asan.patch new file mode 100644 index 000000000000..526da3336504 --- /dev/null +++ b/external/gpgmepp/asan.patch @@ -0,0 +1,14 @@ +--- src/posix-io.c ++++ src/posix-io.c +@@ -468,6 +468,11 @@ + + if (atfork) + atfork (atforkvalue, 0); ++ char const * ld_path = getenv("LIBO_LD_PATH"); ++ if (!ld_path) ++ abort(); ++ if (setenv("LD_LIBRARY_PATH", ld_path, 1) != 0) ++ abort(); + + /* First close all fds which will not be inherited. If we + * have closefrom(2) we first figure out the highest fd we |