hardened_malloc/preload.sh
2018-12-05 02:05:37 -05:00

7 lines
160 B
Bash
Executable File

#!/bin/bash
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
[[ $LD_PRELOAD ]] && LD_PRELOAD+=" "
export LD_PRELOAD+="$dir/libhardened_malloc.so"
exec "$@"