aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/qt
diff options
context:
space:
mode:
authorGravatar Robert Löhning <robert.loehning@qt.io>2020-03-16 15:57:02 +0100
committerGravatar GitHub <noreply@github.com>2020-03-16 07:57:02 -0700
commita35bbeeeae444aff611ce5661d9c7e969f8fa3f7 (patch)
tree4867547770a0aae308f5b302389686261b34c6f7 /projects/qt
parent32e5bcfc9c37febd2cffc17709a6f76eb3f10507 (diff)
[qt] Add fuzz target for ctor of QSslCertificate (#3504)
* [qt] Add fuzz target for ctor of QSslCertificate * [qt] Fix filename of corpus file * Cherry-pick fuzz target directly. It's in the repo now.
Diffstat (limited to 'projects/qt')
-rw-r--r--projects/qt/Dockerfile4
-rwxr-xr-xprojects/qt/build.sh2
2 files changed, 6 insertions, 0 deletions
diff --git a/projects/qt/Dockerfile b/projects/qt/Dockerfile
index 4b0dbf96..0ba19e34 100644
--- a/projects/qt/Dockerfile
+++ b/projects/qt/Dockerfile
@@ -20,6 +20,10 @@ RUN apt-get update && apt-get install -y build-essential python libxcb-xinerama0
RUN git clone --branch 5.15 --depth 1 git://code.qt.io/qt/qt5.git qt
WORKDIR qt
RUN perl init-repository --module-subset=qtbase
+WORKDIR qtbase
+RUN git config --global user.name qtrob
+RUN git config --global user.email qtrob@oss-fuzz
+RUN git cherry-pick 9133bdcf26cc7eacea2933ab09837f0c7113880f
WORKDIR $SRC
RUN git clone --depth 1 git://code.qt.io/qt/qtqa.git
COPY build.sh $SRC/
diff --git a/projects/qt/build.sh b/projects/qt/build.sh
index b0fbd82b..57de861b 100755
--- a/projects/qt/build.sh
+++ b/projects/qt/build.sh
@@ -32,6 +32,7 @@ make -j$(nproc)
# prepare corpus files
zip -j $WORK/html $SRC/qtqa/fuzzing/testcases/html/*
zip -j $WORK/markdown $SRC/qtqa/fuzzing/testcases/markdown/*
+zip -j $WORK/ssl.pem.zip $SRC/qtqa/fuzzing/testcases/ssl.pem/*
zip -j $WORK/text $SRC/qtqa/fuzzing/testcases/text/* /usr/share/afl/testcases/others/text/*
zip -j $WORK/xml $SRC/qtqa/fuzzing/testcases/xml/* /usr/share/afl/testcases/others/xml/*
@@ -80,3 +81,4 @@ build_fuzzer "old" "qtbase" "corelib/serialization/qxmlstream/qxmlstreamreader/r
# build_fuzzer "new" "qtbase" "gui/text/qtextdocument/sethtml/sethtml.pro" "html" "/usr/share/afl/testcases/_extras/html_tags.dict"
build_fuzzer "old" "qtbase" "gui/text/qtextdocument/setmarkdown/setmarkdown.pro" "markdown"
build_fuzzer "new" "qtbase" "gui/text/qtextlayout/beginlayout/beginlayout.pro" "text"
+build_fuzzer "new" "qtbase" "network/ssl/qsslcertificate/qsslcertificate/pem/pem.pro" "ssl.pem"