mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-18 01:10:38 +08:00
Check for bugs in wxFileConfig. Closes #26597. Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
23 lines
778 B
Bash
Executable File
23 lines
778 B
Bash
Executable File
#!/bin/bash -eu
|
|
|
|
# build project
|
|
./configure --without-subdirs --disable-shared --disable-sys-libs --disable-gui LDFLAGS="$CXXFLAGS"
|
|
make -j$(nproc)
|
|
|
|
# build fuzzers
|
|
$CXX $CXXFLAGS -o $OUT/zip tests/fuzz/zip.cpp \
|
|
$LIB_FUZZING_ENGINE `./wx-config --cxxflags --libs base`
|
|
|
|
$CXX $CXXFLAGS -o $OUT/tar tests/fuzz/tar.cpp \
|
|
$LIB_FUZZING_ENGINE `./wx-config --cxxflags --libs base`
|
|
cp tests/fuzz/tar.options $OUT/
|
|
|
|
$CXX $CXXFLAGS -o $OUT/fileconf tests/fuzz/fileconf.cpp \
|
|
$LIB_FUZZING_ENGINE `./wx-config --cxxflags --libs base`
|
|
cp tests/fuzz/fileconf.options $OUT/
|
|
|
|
# and copy their corpora
|
|
zip -j $OUT/zip_seed_corpus.zip tests/fuzz/corpus/zip/*
|
|
zip -j $OUT/tar_seed_corpus.zip tests/fuzz/corpus/tar/*
|
|
zip -j $OUT/fileconf_seed_corpus.zip tests/fuzz/corpus/fileconf/*
|