From a305d2502948697f21cea0fd152566e473f88a6a Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Wed, 22 Jul 2020 12:53:57 -0700 Subject: [PATCH] asan_device_setup's wrapper scripts not handling args with spaces correctly Summary: Came up in Chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=1103108#c21 Reviewers: eugenis Reviewed By: eugenis Subscribers: #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D84237 --- compiler-rt/lib/asan/scripts/asan_device_setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/asan/scripts/asan_device_setup b/compiler-rt/lib/asan/scripts/asan_device_setup index 041bf92..27fedea 100755 --- a/compiler-rt/lib/asan/scripts/asan_device_setup +++ b/compiler-rt/lib/asan/scripts/asan_device_setup @@ -330,7 +330,7 @@ function generate_zygote_wrapper { # from, to ASAN_OPTIONS=$ASAN_OPTIONS \\ ASAN_ACTIVATION_OPTIONS=include_if_exists=/data/local/tmp/asan.options.%b \\ LD_PRELOAD=$_ld_preload \\ -exec $_to \$@ +exec $_to "\$@" EOF } -- 2.7.4