hardened_malloc/preload.sh

7 lines
160 B
Bash
Raw Permalink Normal View History

2018-08-21 15:23:22 -04:00
#!/bin/bash
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
[[ $LD_PRELOAD ]] && LD_PRELOAD+=" "
export LD_PRELOAD+="$dir/libhardened_malloc.so"
exec "$@"