From 0580334466d57fedb889d5ed7ae9574d6f66e00c Mon Sep 17 00:00:00 2001 From: Wan-Teh Chang Date: Tue, 20 Feb 2024 14:39:52 -0800 Subject: [PATCH] In sed scripts, match a dot "." with "\." Otherwise, "." matches any character. --- tests/oss-fuzz/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/oss-fuzz/build.sh b/tests/oss-fuzz/build.sh index c93e1bd097..e24420338f 100755 --- a/tests/oss-fuzz/build.sh +++ b/tests/oss-fuzz/build.sh @@ -43,13 +43,13 @@ if [ "$SANITIZER" == "memory" ] then export DAV1D_EXTRA_FLAGS="${DAV1D_EXTRA_FLAGS} -Denable_asm=false" fi -sed -i 's/meson setup \(.*\) ../meson setup \1 '"${DAV1D_EXTRA_FLAGS}"' ../g' ./ext/dav1d.cmd +sed -i 's/meson setup \(.*\) \.\./meson setup \1 '"${DAV1D_EXTRA_FLAGS}"' ../g' ./ext/dav1d.cmd # Build libaom with sanitizer flags. # Adds extra flags: -DAOM_TARGET_CPU=generic for msan. if [ "$SANITIZER" == "memory" ] then - sed -i 's/cmake \(.*\) ../cmake \1 -DAOM_TARGET_CPU=generic ../g' ./ext/aom.cmd + sed -i 's/cmake \(.*\) \.\./cmake \1 -DAOM_TARGET_CPU=generic ../g' ./ext/aom.cmd fi # Build libjpeg-turbo with sanitizer flags. Add extra flag -DWITH_SIMD=0 for msan.