hardened_malloc/preload.sh
2018-08-30 09:08:33 -04:00

7 lines
157 B
Bash
Executable File

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