fuzzers/corpora/patch_parse/edit-file.diff
raw| 1 | diff --git a/fuzzers/patch_fuzzer.c b/fuzzers/patch_fuzzer.c |
| 2 | index 76186b6fb..f7ce73ac8 100644 |
| 3 | --- a/fuzzers/patch_fuzzer.c |
| 4 | +++ b/fuzzers/patch_fuzzer.c |
| 5 | @@ -32,7 +32,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) |
| 6 | git_patch* patch; |
| 7 | git_patch_options opts = {(uint32_t)data[0]}; |
| 8 | int status = git_patch_from_buffer(&patch, (const char*)data+1, size-1, &opts); |
| 9 | - if (status == 0 && patch) { |
| 10 | + if (patch) { |
| 11 | git_patch_free(patch); |
| 12 | } |
| 13 | return 0; |