Commit Graph

6 Commits

Author SHA1 Message Date
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 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 f8d1439cd6
[git]: add loop for the cmd fuzzing (#8611)
Add loop for git command fuzzing, allowing more coverage.
2022-09-27 23:38:25 +01:00
Arthur Chan 39a4c95af3
git: Combine multiple git command fuzzer to one (#8579)
List of git commands covered
        GIT_ADD
        GIT_BRANCH
        GIT_COMMIT
        GIT_CONFIG
        GIT_DIFF
        GIT_DIFF_FILES
        GIT_DIFF_INDEX
        GIT_DIFF_TREE
        GIT_LS_FILES
        GIT_LS_TREE
        GIT_MV
	GIT_RERERE
      	GIT_STATUS
        GIT_VERSION
2022-09-23 19:26:32 +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