summaryrefslogtreecommitdiffstats
path: root/fuzzing
Commit message (Collapse)AuthorAgeFilesLines
* fuzzing: Add input file which triggered buffer overflowRobert Löhning2024-01-241-0/+1
| | | | | | | Credit to OSS-Fuzz Change-Id: Idda26cd0b35d759aee5ab0d8595b9f7b16ad7378 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* fuzzing: Add file which caused a signed integer overflowRobert Löhning2024-01-241-0/+1
| | | | | | | Credit to OSS-Fuzz Change-Id: I03d813b46e68d8eee418c8584f9d3df1339ab04f Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* fuzzing: Add files which caused a nullptr dereference in qtsvgRobert Löhning2024-01-172-0/+2
| | | | | | | | Credit to OSS-Fuzz Task-number: QTBUG-117944 Change-Id: I4ef627c75dcdb9f1cfedf2adce054800beabbfc3 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
* fuzzing: Add svg file which caused fuzzers to time outRobert Löhning2024-01-171-0/+1
| | | | | | | | Credit to OSS-Fuzz Task-number: QTBUG-113042 Change-Id: I07d844462b3c16952f4be6caccd098eab5a1045e Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
* fuzzing: Add input file which triggered division by zeroRobert Löhning2024-01-091-0/+1
| | | | | | | | | Credit to OSS-Fuzz Task-number: QTBUG-120332 Change-Id: I20b227076f6bf0b3242ff2918d98a85786c7341e Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* fuzzing: Add input file which triggered a temporary memory issueRobert Löhning2024-01-051-0/+1
| | | | | | | Credit to OSS-Fuzz Change-Id: I3215486f864a157bed798176a5988ed8145f8dc0 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* fuzzing: Add svg file which revealed use of uninitialized memberRobert Loehning2023-05-021-0/+0
| | | | | | | Credit to OSS-Fuzz Change-Id: I49acb9f7607505bf3b0f43e119be3bb554d77203 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
* fuzzing: Add svg file which revealed performance regressionRobert Loehning2023-03-091-0/+1
| | | | | | | | | | Credit to OSS-Fuzz Task-number: QTBUG-101281 Task-number: QTBUG-102599 Task-number: QTBUG-110595 Change-Id: I571a7ba0b730a8f482c82d571aba89559cf58cf4 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
* fuzzing: Add cbor file which caused overflow in getDateTime()Robert Löhning2023-02-011-0/+0
| | | | | | | Credit to OSS-Fuzz Change-Id: I4de93c3311e2ca6eb356fef6e50790b723939ab3 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
* fuzzing: Add tga file which triggered an integer overflowRobert Löhning2023-01-112-1/+1
| | | | | | Change-Id: I66b6f08dbc649bf352efd92639c9258a323f5471 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch> Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
* fuzzing: Refactor build.sh to allow the use of local Qt checkoutSamuel Gaist2022-10-061-27/+38
| | | | | | | | | | | | | | | | The way the oss-fuzz Dockerfile is currently defined does not allow for the use of a local checkout of Qt when building the fuzzers or the test cases. In order to fix that, the first step is to update this script so it is ready for the new version of the Dockerfile but also keep it compatible with the current version so that there's no break on the fuzzing side until the new Dockerfile is merged by the oss-fuzz project. Related: https://github.com/google/oss-fuzz/issues/7634 Change-Id: I98bfa4a3d83d1a3259eb4b7a33e839ededc54751 Reviewed-by: Robert Löhning <robert.loehning@qt.io>
* fuzzing: Add cbor file to initialize fuzzingSamuel Gaist2022-09-201-0/+0
| | | | | | Task-number: QTBUG-104718 Change-Id: Iba11d656a7bc595a677006d18aa775ecdf15923b Reviewed-by: Robert Löhning <robert.loehning@qt.io>
* fuzzing: Add icns files to initialize fuzzingRobert Löhning2022-06-203-1/+1
| | | | | | Task-number: QTBUG-103454 Change-Id: Ib802ed9bd3bc38d2a9c1e3d8b7a0d9cc84cbe886 Reviewed-by: Albert Astals Cid <aacid@kde.org>
* oss-fuzz: Build qtimageformatsRobert Löhning2022-05-111-6/+11
| | | | | Change-Id: I758d62a3949fb5459759132156f2b99733ba38b4 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* fuzzing: Add svg which revealed race condition in QSemaphoreRobert Löhning2022-05-061-0/+1
| | | | | | Task-number: QTBUG-102484 Change-Id: I1004e7e6eee4924afbdd8b7bc40c932165e29d5a Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
* oss-fuzz: Use individual names for the temporary build directoriesRobert Löhning2022-04-281-3/+3
| | | | | | | Trying to fix per target coverage reports. Change-Id: Id4b87de91cc04229f87addee37fe0e2e83dfad3c Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
* fuzzing: Add file which caused ICOReader to go oomRobert Löhning2022-03-111-0/+0
| | | | | Change-Id: I50779a86a6d249b9816d1015381e4ac4f21c9651 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* fuzzing: Add svg which caused overflow in QRasterPaintEngineRobert Löhning2022-02-161-0/+1
| | | | | | Task-number: QTBUG-100217 Change-Id: I1da3111d8a1875b06b135dedede84d4fe33fc8d0 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* oss-fuzz: Add fuzzer for QJsonDocument::fromJsonRobert Löhning2022-01-191-0/+2
| | | | | | | Change-Id: I006471519c324416461d6859c570c1fdf0d6d523 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* fuzzing: Add json file which triggered a memory leakRobert Löhning2022-01-181-0/+1
| | | | | | Task-number: QTBUG-99799 Change-Id: I78dc9927be734ff8ea7a45da680dbec87de8a4f7 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
* fuzzing: Add a valid certificate for fuzzing ssl againRobert Löhning2022-01-032-0/+29
| | | | | Change-Id: I59983f8dacd51ee0adc17aeb5e84c197f5ca4460 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* oss-fuzz: Build Qt from separate submodules instead of qt5.gitRobert Löhning2021-12-201-7/+14
| | | | | Change-Id: I16bc374e8f57c94bee01fee608e7b5a42231deeb Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* oss-fuzz: Don't build widgetsRobert Löhning2021-12-161-1/+1
| | | | | | | They're unused anyway. Change-Id: I0854f417228b9299bdff02fa3a5a09f95e96dc31 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
* fuzzing: Add input data which triggered issuesRobert Löhning2021-12-082-0/+2
| | | | | Change-Id: Ieb2155d30c0e94f1f4b8e92f82f662154d88ae03 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* fuzzing: Add datetime string which triggered an integer overflowRobert Löhning2021-10-011-0/+1
| | | | | Change-Id: I9ae62423763b005398579d130cdc514a89a7d5f1 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* oss-fuzz: Update configure flagsRobert Löhning2021-08-161-1/+4
| | | | | | | | | | Explicitly set optimizations to "-O1" as in C(XX)FLAGS. QT_NO_DEPRECATED_WARNINGS was only needed because Qt 5.15 generated more warnings than the log allowed. Change-Id: I6f7657060546c79517ae1b49c458e0b25f427bfa Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* fuzzing: Add png file which triggered a memory leakRobert Löhning2021-08-131-0/+0
| | | | | Change-Id: I16dfd6851129a381f34ac891cc684727c7a7b6be Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
* fuzzing: Add svg file which ran out of memoryRobert Löhning2021-08-061-0/+2
| | | | | Change-Id: Iec4ae1a4d3b4197d2085074f184f21d053eca341 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
* oss-fuzz: Remove mkspec hacks for qmakeRobert Löhning2021-08-051-12/+0
| | | | | | | They're not being used anymore, now that we build with cmake. Change-Id: I8a68695e362603de40f3eec32ec3fb194437e394 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* oss-fuzz: Use pushd and popd when changing directoriesRobert Löhning2021-08-041-2/+2
| | | | | Change-Id: I1abc120fa383219b3c4a130b3ebfe37ae58988f9 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
* fuzzing: Add testcases for recently fixed issuesRobert Löhning2021-08-045-0/+3
| | | | | | Task-number: QTBUG-95239 Change-Id: Ie4457518778076800e06b769929be77c6e8353c3 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
* oss-fuzz: Build all tests using cmakeRobert Löhning2021-07-291-45/+14
| | | | | | Change-Id: I4f389315eac7ace5219eb1f2df278740fc58fd38 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* oss-fuzz: Remove merged dicts directory after buildRobert Löhning2021-07-201-0/+2
| | | | | | | It's annoying to always have to remove it manually before a rebuild. Change-Id: Iaf144eac323c053a29cf2786a2e1e023b2629e47 Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
* fuzzing: Add input which caused div by 0 in QIcc::fromIccProfileRobert Löhning2021-06-251-0/+0
| | | | | Change-Id: Id0f77411dee5abdd82b4a88ea46444a5f72655ce Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* fuzzing: Add testcase for css outset border styleRobert Löhning2021-06-221-0/+1
| | | | | | | I missed this in cd4460377bb0cf47d144086e03d49fb92724e8ac. Change-Id: I8f9d25420ff07708fdb33d9eb6485730d7b4122b Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
* oss-fuzz: Merge dictionaries of multiple formatsRobert Löhning2021-06-211-2/+7
| | | | | | | | | Some functions handle multiple formats, e.g. QTextDocument::setHtml also handles css. With the merged dictionaries, keywords of all formats will be inserted into generated inputs. Change-Id: I81602739b259071e0eb226244dcca6d634302e68 Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
* fuzzing: Add testcases for css border and list stylesRobert Löhning2021-06-1717-0/+17
| | | | | | Change-Id: Ib6469278a8421c74641bae980792d305e91abe0b Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* fuzzing: Add HTML file which caused a memory leakRobert Löhning2021-05-261-0/+1
| | | | | | Task-number: QTBUG-93068 Change-Id: Id37365fd75c4627d145f341f2feb608d97b11b23 Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
* fuzzing: Add HTML file which caused undefined behaviorRobert Löhning2021-05-251-0/+1
| | | | | | Task-number: QTBUG-93072 Change-Id: I73c9964017d3385e4aef4566bc525a6f58886b52 Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
* oss-fuzz: Use qt-cmake instead of raw cmake for building testsRobert Löhning2021-05-031-1/+1
| | | | | Change-Id: I23ecf506e8420f38ea98286d1d5a805ba5212c98 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* oss-fuzz: Clean call to configureRobert Löhning2021-04-231-1/+1
| | | | | | | | - MAKEFLAGS are ineffective with cmake-based configure - Skipping examples and tests is implicit Change-Id: I8c5b64b040f37253cd173f35126900a5a7622fe0 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* fuzzing: Add inputs which caused overflows and timeouts in QDateTimeRobert Löhning2021-04-232-0/+0
| | | | | | Task-number: QTBUG-92842 Change-Id: If6aaf419de8d724079893af7a60b3f8ea540b27f Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
* oss-fuzz: Build svg's fuzz target using CMakeRobert Löhning2021-04-221-1/+24
| | | | | | Change-Id: I1e27ca142fa534707fd32a1c0934f178daaddbff Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* fuzzing: Add input file which used to crash QTextDocument::setHtml()Robert Löhning2021-04-221-0/+1
| | | | | Change-Id: I16839ae39e70180340bd0d3ed1a0a5fd96ad06be Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
* fuzzing: Add inputs which caused issues in QDateTime and qtsvgRobert Löhning2021-04-208-0/+5
| | | | | | | | Task-number: QTBUG-92555 Task-number: QTBUG-92808 Change-Id: Ic74500b476555cce68d23efb851c299f7fa4491d Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
* fuzzing: Add HTML files which caused trouble in QTextDocumentRobert Löhning2021-04-133-0/+10
| | | | | | | Task-number: QTBUG-92159 Task-number: QTBUG-92463 Change-Id: I6c9bfc8f269f21600cec0cb415adf2e1b63cf0d6 Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
* oss-fuzz: Add fuzz target for QDateTimeRobert Löhning2021-03-291-0/+2
| | | | | Change-Id: I655a74808714629af693deec30d4286c2ca205d1 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* fuzzing: Add inputs which triggered undefined behavior in QDateTimeRobert Löhning2021-03-262-0/+2
| | | | | | | Task-number: QTBUG-88820 Task-number: QTBUG-88822 Change-Id: I4d6dfce4ebcfd6fcbc3737b7bbe0840722b164c8 Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
* fuzzing: Add svg files which temporarily triggered a leakRobert Löhning2021-03-227-0/+7
| | | | | | Task-number: QTBUG-91916 Change-Id: Ie039ef77923d9b922843cd47fdc698d2aff032e2 Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
* fuzzing: Add latest published testcases from oss-fuzzRobert Löhning2021-03-195-0/+3
| | | | | Change-Id: I6db1fcb929e291cfbc8b0399c8a828b85b01806f Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>