diff options
author | Robert Löhning <robert.loehning@qt.io> | 2020-03-31 23:35:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 14:35:39 -0700 |
commit | be91239b10fedc5467c192d7923ca360b3234a19 (patch) | |
tree | f357b7bf72fced5d5b093d551484e99b3f50c6aa /projects/qt | |
parent | d99a6ac865c40f5a8150552477ab91584df3032f (diff) | |
download | oss-fuzz-be91239b10fedc5467c192d7923ca360b3234a19.tar.gz |
[qt] Use dictionaires and testcases from AFL's repo (#3562)
...instead of Ubuntu package
Diffstat (limited to 'projects/qt')
-rw-r--r-- | projects/qt/Dockerfile | 3 | ||||
-rwxr-xr-x | projects/qt/build.sh | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/projects/qt/Dockerfile b/projects/qt/Dockerfile index 4b0dbf968..f43e182b5 100644 --- a/projects/qt/Dockerfile +++ b/projects/qt/Dockerfile @@ -16,10 +16,11 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER rlohningqt@gmail.com -RUN apt-get update && apt-get install -y build-essential python libxcb-xinerama0-dev && apt-get install --no-install-recommends afl-doc +RUN apt-get update && apt-get install -y build-essential python libxcb-xinerama0-dev 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 $SRC RUN git clone --depth 1 git://code.qt.io/qt/qtqa.git +RUN git clone --depth 1 https://github.com/google/AFL.git COPY build.sh $SRC/ diff --git a/projects/qt/build.sh b/projects/qt/build.sh index 22929ccd9..824b3f6b9 100755 --- a/projects/qt/build.sh +++ b/projects/qt/build.sh @@ -33,8 +33,8 @@ make -j$(nproc) 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/* +zip -j $WORK/text $SRC/qtqa/fuzzing/testcases/text/* $SRC/AFL/testcases/others/text/* +zip -j $WORK/xml $SRC/qtqa/fuzzing/testcases/xml/* $SRC/AFL/testcases/others/xml/* # build fuzzers @@ -77,8 +77,8 @@ build_fuzzer() { } build_fuzzer "new" "qtbase" "corelib/serialization/qcborvalue/fromcbor/fromcbor.pro" -build_fuzzer "old" "qtbase" "corelib/serialization/qxmlstream/qxmlstreamreader/readnext/readnext.pro" "xml" "/usr/share/afl/testcases/_extras/xml.dict" -# build_fuzzer "new" "qtbase" "gui/text/qtextdocument/sethtml/sethtml.pro" "html" "/usr/share/afl/testcases/_extras/html_tags.dict" +build_fuzzer "old" "qtbase" "corelib/serialization/qxmlstream/qxmlstreamreader/readnext/readnext.pro" "xml" "$SRC/AFL/dictionaries/xml.dict" +# build_fuzzer "new" "qtbase" "gui/text/qtextdocument/sethtml/sethtml.pro" "html" "$SRC/AFL/dictionaries/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" |