aboutsummaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorRobert Löhning <robert.loehning@qt.io>2020-01-16 13:27:29 +0100
committerjonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2020-01-16 04:27:29 -0800
commit61220d2a3be0fea9ecf87ea6a0197194d1d2c24c (patch)
tree47e882d68e11f5ca576d20d1ca807ee270a79525 /projects
parentf22c0fbaac04678d14c97c289e75b23ca275c1d8 (diff)
downloadoss-fuzz-61220d2a3be0fea9ecf87ea6a0197194d1d2c24c.tar.gz
Qt: Build fuzz target for QTextDocument::setMarkdown (#3241)
Diffstat (limited to 'projects')
-rwxr-xr-xprojects/qt/build.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/projects/qt/build.sh b/projects/qt/build.sh
index 9a15989db..8ee17d66b 100755
--- a/projects/qt/build.sh
+++ b/projects/qt/build.sh
@@ -31,6 +31,7 @@ make -j$(nproc)
make install
# prepare corpus files
+zip -j $WORK/markdown $SRC/qtqa/fuzzing/testcases/markdown/*
zip -j $WORK/xml $SRC/qtqa/fuzzing/testcases/xml/* /usr/share/afl/testcases/others/xml/*
# build fuzzers
@@ -39,3 +40,8 @@ make -j$(nproc)
mv readnext $OUT
cp $WORK/xml.zip $OUT/readnext_seed_corpus.zip
cp /usr/share/afl/testcases/_extras/xml.dict $OUT/readnext.dict
+
+$OUT/bin/qmake $SRC/qt/qtbase/tests/libfuzzer/gui/text/qtextdocument/setMarkdown/setMarkdown.pro
+make -j$(nproc)
+mv setMarkdown $OUT
+cp $WORK/markdown.zip $OUT/setMarkdown_seed_corpus.zip