summaryrefslogtreecommitdiff
path: root/fuzzers/corpora
Commit message (Collapse)AuthorAgeFilesLines
* [midx] Fix an undefined behavior (left-shift signed overflow)lhchavez2022-04-051-0/+0
| | | | | | | | | | | | | There was a missing check to ensure that the `off64_t` (which is a signed value) didn't overflow when parsing it from the midx file. This shouldn't have huge repercusions since the parsed value is immediately validated afterwards, but then again, there is no such thing as "benign" undefined behavior. This change makes all the bitwise arithmetic happen with unsigned types and is only casted to `off64_t` until the very end. Thanks to Taotao Gu for finding and reporting this!
* libgit2_clar is now libgit2_testsMartin Kühl2021-10-281-3/+3
| | | | | | in #6083 the test runner was renamed to libgit2_tests, but not all references to the old name were updated. this change changes all of them to use the new name.
* cmake: BUILD_CLAR is now BUILD_TESTSethomson/clar_no_moreEdward Thomson2021-10-171-2/+2
| | | | | Nobody knows what CLAR is. The test building option should be `BUILD_TESTS`.
* commit-graph: Introduce a parser for commit-graph fileslhchavez2021-01-10513-0/+5
| | | | | | | | This change is the first in a series to add support for git's commit-graph. This should speed up commit graph traversals by avoiding object parsing and allowing some operations to terminate earlier. Part of: #5757
* multipack: Introduce a parser for multi-pack-index fileslhchavez2020-10-05441-0/+31
| | | | | | | This change is the first in a series to add support for git's multi-pack-index. This should speed up large repositories significantly. Part of: #5399
* fuzzers: add a new fuzzer for patch parsingAugie Fackler2019-10-172-0/+58
| | | | | I was looking at this code anyway because the sr.ht people nerdsniped me, and it gave me that "I should fuzz this" feeling. So have a fuzzer!
* fuzzers: add object parsing fuzzerPatrick Steinhardt2018-10-114-0/+385
| | | | | | Add a simple fuzzer that exercises our object parser code. The fuzzer is quite trivial in that it simply passes the input data directly to `git_object__from_raw` for each of the four object types.
* Add a config file to the corpusNelson Elhage2018-08-051-0/+11
|
* fuzzers: import download_refs fuzzer from oss-fuzzPatrick Steinhardt2018-08-031-0/+0
| | | | | | | | This is a direct copy of the code from google/oss-fuzz, written by Nelson Elhage (@nelhage). Note that due to the ".cc" ending, the file will not yet be picked up by the build system. This is intended, as currently that file is partly written in C++, requiring a conversion to C.
* fuzzers: rename "fuzz" directory to match our stylePatrick Steinhardt2018-08-03314-0/+60
Our layout uses names like "examples" or "tests" which is why the "fuzz" directory doesn't really fit in here. Rename the directory to be called "fuzzers" instead. Furthermore, we rename the fuzzer "fuzz_packfile_raw" to "packfile_raw_fuzzer", which is also in line with the already existing fuzzer at google/oss-fuzz. While at it, rename the "packfile_raw" fuzzer to instead just be called "packfile" fuzzer.