aboutsummaryrefslogtreecommitdiffstats
path: root/fuzz/qtest
AgeCommit message (Collapse)Author
2024-02-06Detect end of input inside an unfinished JSON stringJay Berkenbilt
2024-02-06Detect JSON object whose value is an indirect objectJay Berkenbilt
2024-02-04Fix JSON parser error found by fuzzJay Berkenbilt
2024-02-04Add json fuzzer with seed files from #1123 and test suiteJay Berkenbilt
...as well as some cases generated in CI from earlier attempts at fixing this.
2024-02-03Add additional test case for fuzz testsm-holger
2024-01-17Fix incorrect handling of invalid negative object idsm-holger
Fix two errors introduced in #1110 and #1112. Since #1110, encountering the invalid indirect reference #1110 -2147483648 n R produces an integer underflow which, if undetected, immediately trigger a logic error. Since #1112, object -1 0 R may be incorrectly identified as an earlier generation of itself and deleted, invalidating a live iterator.
2024-01-12Fix null pointer issue on array copyJay Berkenbilt
2023-05-05Add the file to reproduce fuzz issue 57639Jay Berkenbilt
It is possible to reproduce the failure with this file following the instructions with oss-fuzz, though it does not cause a failure in CI. The failure was introduced in 18c1ffe0df335a46cddbeb96e2cb939d850df9fa.
2022-03-19Change handling of qpdf fuzz corpusJay Berkenbilt
Files are copied into the build area rather than left in the source tree, and the test suite looks for them there. Also remove special case around counting files in the qpdf corpus.
2021-12-16Remove original qpdf fuzz seed corpus from testsJay Berkenbilt
Since the introduction of fuzz testing, there has never been a problem found because of a failure of a file in the fuzzer seed corpus. As the fuzzer has found problems, they have been added to the test suite, and that should be adequate to exercise the fuzzers in the tesing environment as well as providing adequate regression testing. Removing these original files shaves many minutes off the builds in CI.
2021-11-04Fix bug in merging resources /DR from foreign AcroForm (fixes #548)Jay Berkenbilt
When making resources indirect in from_dr, the code was using the wrong owning QPDF, forgetting that from_dr had already been copied using CopyForeignObject.
2020-10-21Remove some fuzz files with Mal/PDFEx-H (fixes #460)Jay Berkenbilt
There isn't really an issue with these files causing a real problem, but malware and virus checkers trip on them, and the value to leaving them in the test suite is too low to be worth the hassle.
2019-08-28Detect stream in object stream, fixing fuzz 16214Jay Berkenbilt
It's detected in QPDFWriter instead of at parse time because I can't figure out how to construct a test case in a reasonable time. This commit moves the fuzz file into the regular test suite for a QTC coverage case.
2019-08-26Fix fuzz issue 15475Jay Berkenbilt
2019-08-26Move qpdf_fuzzer tests to the endJay Berkenbilt
This makes it faster to iterate on the other ones.
2019-08-26Fuzz build: allow easy addition of test filesJay Berkenbilt
2019-06-23Add fuzzers to exercise specific pipeline classesJay Berkenbilt
2019-06-21Clean up fuzzer installation and add test filesJay Berkenbilt
* Create the seed corpus in the build directory * Don't assume all fuzzers share an options file
2019-06-21Re-enable fuzzer testing in WindowsJay Berkenbilt
2019-06-15As a test suite, run stand-alone fuzzer on seed corpusJay Berkenbilt
Temporarily skip fuzz tests on Windows. There are Windows-specific failures to address later.