Commit Graph

8 Commits

Author SHA1 Message Date
Arthur Chan 208b63202a
[git]: Set GIT_CONFIG_SYSTEM environment variable (#8691)
Set GIT_CONFIG_SYSTEM environment variable to local template to avoid
git accessing inaccessible default location.
2022-10-06 12:25:23 +01:00
Arthur Chan cc6bd316b8
[git]: Remove git system config and add debug message (#8671)
Reset git system config for each iteration and print debug message of
folder construction.
Allowing error message to display.
2022-10-04 17:16:23 +01:00
Arthur Chan dcbdb3b919
[git]: increase code coverage (#8662)
Fix error handling and increase base seed size to avoid early ending
from errors.
2022-10-03 21:39:39 +01:00
DavidKorczynski 9808e992e8
git: refine set up (#8656)
- Match with latest upstream changes where some fuzzing PRs have gone
through
(600f45a53b)
- Add checks on return values from cmd_add and cmd_git to avoid
proceeding in the event something erroneous happen
- Refine fuzz-cmd-diff
- Add leak detection
- Adds some patching in the git code to avoid exit. This should be okay
-- at least the fuzzers continue to run on my system. Let's see if down
the line some type of state gets cluttered.

This makes the diff and command fuzzer run well on my machine and we
have no dependencies on executables on the platform besides standard
linux utilities.

Signed-off-by: David Korczynski <david@adalogics.com>

Signed-off-by: David Korczynski <david@adalogics.com>
2022-10-01 20:38:58 +01:00
Arthur Chan 43c4d9a53a
[git]: Fix git diff version status (#8640)
Fix memory clearing logic for cmd fuzzers
Also solve issue 52003
(https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52003)
2022-09-30 14:29:29 +01:00
Arthur Chan 43ba156dd3
[git]: Fix git command calling (#8635)
Change git repository initialization method. Instead of passing git
command to system(), internal git command functions are used to avoid
external git error.
2022-09-30 00:10:53 +01:00
Arthur Chan ff454e51fc
git: fix bug in issue 51681 51688 (#8563)
Fix bugs in fuzzers. Aim to solve double freeing of pointers and divided
by zero float pointer exception and size calculation.
Fixed os-fuzz issue 51681 and 51688.
2022-09-22 13:54:15 +01:00
Arthur Chan 7cd6569f8a
git: create git command fuzzers (#8553)
This PR aims to create fuzzers for the git project that fuzz each of the
git commands. The initial fuzzers created are targetting the following
git commands.

1. git-version
2. git-status
3. git-diff
4. git-diff-tree
5. git-diff-files
6. git-diff-index
2022-09-21 15:17:55 +01:00