Skip to content

Commit

Permalink
ossfuzz.sh: Opt out of shift sanitizer
Browse files Browse the repository at this point in the history
Shift sanitizer flags a few failures that prevent further fuzzing
with other undefined behavior sanitizers enabled.
Disable shift sanitizer till the library is updated to avoid these
undefined shift sanitizer issues.
  • Loading branch information
harishdm authored and DichenZhang1 committed Aug 10, 2024
1 parent 322228a commit ea72bc8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fuzzer/ossfuzz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
test "${SRC}" != "" || exit 1
test "${WORK}" != "" || exit 1

#Opt out of shift sanitizer in undefined sanitizer
if [[ $SANITIZER = *undefined* ]]; then
CFLAGS="$CFLAGS -fno-sanitize=shift"
CXXFLAGS="$CXXFLAGS -fno-sanitize=shift"
fi

# Build libultrahdr
build_dir=$WORK/build
rm -rf ${build_dir}
Expand Down

0 comments on commit ea72bc8

Please sign in to comment.