From 889ec298d4877ba304605be511cea419d38418c1 Mon Sep 17 00:00:00 2001 From: Mohammad Nejati Date: Wed, 9 Oct 2024 08:58:14 +0000 Subject: [PATCH] `drone.sh`: disable ASLR --- .drone/drone.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.drone/drone.sh b/.drone/drone.sh index 838621a2..27c11ed4 100755 --- a/.drone/drone.sh +++ b/.drone/drone.sh @@ -42,6 +42,10 @@ common_install () { fi } +if [[ $(uname) == "Linux" && "$B2_ASAN" == "1" ]]; then + echo 0 | sudo tee /proc/sys/kernel/randomize_va_space > /dev/null +fi + if [ "$DRONE_JOB_BUILDTYPE" == "boost" ]; then echo '==================================> INSTALL'