aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/openh264/build.sh
diff options
context:
space:
mode:
authorGravatar Tyson Smith <tysmith@users.noreply.github.com>2019-01-25 12:39:10 -0800
committerGravatar jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2019-01-25 12:39:10 -0800
commit456eded09c7f24c5ee3f14fd2e358edc7de9064c (patch)
tree85560f47abf601f32ee2180c545af018a212c80f /projects/openh264/build.sh
parent7ef4eae22cca28c9afad28e1a7c52fbc0fd79923 (diff)
[openh264] Add to corpus and enable ASM for non-MSAN (#2113)
Diffstat (limited to 'projects/openh264/build.sh')
-rwxr-xr-xprojects/openh264/build.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/projects/openh264/build.sh b/projects/openh264/build.sh
index 22b34ad2..cc011a10 100755
--- a/projects/openh264/build.sh
+++ b/projects/openh264/build.sh
@@ -16,8 +16,16 @@
################################################################################
# prepare corpus
-zip -q0r ${OUT}/decoder_fuzzer_seed_corpus.zip ./res/
+svn export https://github.com/mozillasecurity/fuzzdata.git/trunk/samples/h264 corpus/
+mv ./res/*.264 ./corpus/
+zip -q0r ${OUT}/decoder_fuzzer_seed_corpus.zip ./corpus/
# build
-make -j$(nproc) USE_ASM=No BUILDTYPE=Debug libraries
+if [[ $CXXFLAGS = *sanitize=memory* ]]
+then
+ ASM_BUILD=No
+else
+ ASM_BUILD=Yes
+fi
+make -j$(nproc) USE_ASM=$ASM_BUILD BUILDTYPE=Debug libraries
$CXX $CXXFLAGS -o $OUT/decoder_fuzzer -I./codec/api/svc -I./codec/console/common/inc -I./codec/common/inc -L. -lFuzzingEngine $SRC/decoder_fuzzer.cpp libopenh264.a