Package: datefudge Version: 1.22 Severity: normal Hi,
datefudge.so gets prepended to the LD_PRELOAD list, so after experimenting with the automatic approaches for a while I propose a simple patch that adds environment variable DATEFUDGE_LD_PRELOAD that can be used to inject *Sanitizer libraries as first in the list. Cheers, Ondrej -- System Information: Debian Release: 9.1 APT prefers stable APT policy: (990, 'stable'), (500, 'unstable-debug'), (500, 'stable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.4.0-83-generic (SMP w/8 CPU cores) Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8), LANGUAGE=en_DK.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages datefudge depends on: ii libc6 2.24-11+deb9u1 datefudge recommends no packages. datefudge suggests no packages. -- no debconf information
>From 42c30e4a31b36fb4ee0eca3d63ffc36559a8ea3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= <[email protected]> Date: Tue, 29 Aug 2017 08:47:08 +0200 Subject: [PATCH] Add DATEFUDGE_LD_PRELOAD support to allow prepending *Sanitizer libraries as first in the path --- datefudge.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datefudge.sh b/datefudge.sh index ad5ca3c..9699045 100755 --- a/datefudge.sh +++ b/datefudge.sh @@ -59,6 +59,9 @@ set_ld_environment() add_ld_library_path "${path%/*}" done add_ld_preload "$lib" + if [ "$DATEFUDGE_LD_PRELOAD" ]; then + add_ld_preload "$DATEFUDGE_LD_PRELOAD" + fi } set_datefudge_vars() -- 2.11.0

