Merge pull request #15873 from evverx/pointer-overflow-oss-fuzz
oss-fuzz: turn on the pointer-overflow check
This commit is contained in:
commit
e72ecbf506
|
@ -71,5 +71,8 @@ available functionality:
|
|||
See [Testing systemd using sanitizers](https://systemd.io/TESTING_WITH_SANITIZERS)
|
||||
for more information.
|
||||
|
||||
16. Fossies provides [source code misspelling reports](https://fossies.org/features.html#codespell).
|
||||
The systemd report can be found [here](https://fossies.org/linux/test/systemd-master.tar.gz/codespell.html).
|
||||
|
||||
Access to Coverity and oss-fuzz reports is limited. Please reach out to the
|
||||
maintainers if you need access.
|
||||
|
|
|
@ -27,9 +27,15 @@ build=$WORK/build
|
|||
rm -rf $build
|
||||
mkdir -p $build
|
||||
|
||||
fuzzflag="oss-fuzz=true"
|
||||
if [ -z "$FUZZING_ENGINE" ]; then
|
||||
fuzzflag="llvm-fuzz=true"
|
||||
else
|
||||
fuzzflag="oss-fuzz=true"
|
||||
if [[ "$SANITIZER" == undefined ]]; then
|
||||
UBSAN_FLAGS="-fsanitize=pointer-overflow -fno-sanitize-recover=pointer-overflow"
|
||||
CFLAGS="$CFLAGS $UBSAN_FLAGS"
|
||||
CXXFLAGS="$CXXFLAGS $UBSAN_FLAGS"
|
||||
fi
|
||||
fi
|
||||
|
||||
meson $build -D$fuzzflag -Db_lundef=false
|
||||
|
|
Loading…
Reference in New Issue