Skip to content

Commit

Permalink
botan: Add MSan and Centipede (google#12297)
Browse files Browse the repository at this point in the history
  • Loading branch information
randombit authored Aug 1, 2024
1 parent 5951bdf commit c005ee2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
10 changes: 3 additions & 7 deletions projects/botan/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash -eu
# Copyright 2016,2017 Google Inc.
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -19,13 +19,9 @@ cd $SRC/botan

ln -s $SRC/fuzzer_corpus .

./configure.py --cc-bin=$CXX --cc-abi-flags="$CXXFLAGS" \
--disable-shared --disable-modules=locking_allocator \
--unsafe-fuzzer-mode --build-fuzzers=libfuzzer \
--without-os-features=getrandom,getentropy --with-fuzzer-lib='FuzzingEngine'
./src/scripts/config_for_oss_fuzz.py $CXX "$CXXFLAGS"

make -j$(nproc) libs
make -j$(nproc) fuzzers
make -j$(nproc) libs fuzzers
make fuzzer_corpus_zip

# the seed corpus zips will also be in this directory
Expand Down
5 changes: 2 additions & 3 deletions projects/botan/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ auto_ccs:
- "[email protected]"
sanitizers:
- address
# Disabled MSAN because of https://github.com/google/oss-fuzz/issues/6294
# - memory
- memory
- undefined
main_repo: 'https://github.com/randombit/botan.git'
fuzzing_engines:
- afl
- centipede
- honggfuzz
- libfuzzer

0 comments on commit c005ee2

Please sign in to comment.