From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- .../geckoview/src/asan/resources/lib/x86/wrap.sh | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 mobile/android/geckoview/src/asan/resources/lib/x86/wrap.sh (limited to 'mobile/android/geckoview/src/asan/resources/lib/x86') diff --git a/mobile/android/geckoview/src/asan/resources/lib/x86/wrap.sh b/mobile/android/geckoview/src/asan/resources/lib/x86/wrap.sh new file mode 100644 index 0000000000..24473895f0 --- /dev/null +++ b/mobile/android/geckoview/src/asan/resources/lib/x86/wrap.sh @@ -0,0 +1,24 @@ +#!/system/bin/sh +# These options mirror those in mozglue/build/AsanOptions.cpp +# except for fast_unwind_* which are only needed on Android +options=( + allow_user_segv_handler=1 + alloc_dealloc_mismatch=0 + detect_leaks=0 + fast_unwind_on_check=1 + fast_unwind_on_fatal=1 + max_free_fill_size=268435456 + max_malloc_fill_size=268435456 + malloc_fill_byte=228 + free_fill_byte=229 + handle_sigill=1 + allocator_may_return_null=1 +) +if [ -e "/data/local/tmp/asan.options.gecko" ]; then + options+=("$(cat /data/local/tmp/asan.options.gecko | tr -d '\n')") +fi +LIB_PATH="$(cd "$(dirname "$0")" && pwd)" +IFS=: +export ASAN_OPTIONS="${options[*]}" +export LD_PRELOAD="$(ls "$LIB_PATH"/libclang_rt.asan-*-android.so)" +exec "$@" -- cgit v1.2.3