Skip to content

Add Diff Fuzz Target - #1914

Merged
Byron merged 2 commits into
gitpython-developers:mainfrom
DaveLak:add-diff-fuzz-target
May 9, 2024
Merged

Add Diff Fuzz Target#1914
Byron merged 2 commits into
gitpython-developers:mainfrom
DaveLak:add-diff-fuzz-target

Conversation

@DaveLak

@DaveLak DaveLak commented May 8, 2024

Copy link
Copy Markdown
Contributor

Adds a new fuzz_diff.py fuzz target that covers Diff class initialization using fuzzed data.

Local test run stats:

#46050	DONE   cov: 308 ft: 338 corp: 8/241b lim: 499 exec/s: 51 rss: 86Mb
Done 46050 runs in 901 second(s)
stat::number_of_executed_units: 46050
stat::average_exec_per_sec:     51
stat::new_units_added:          2
stat::slowest_unit_time_sec:    0
stat::peak_rss_mb:              86
Adds a new `fuzz_diff.py` fuzz target that covers `Diff` class
initialization using fuzzed data.
DaveLak added a commit to gitpython-developers/qa-assets that referenced this pull request May 8, 2024
Property access and private methods on the `Diff` class are complex and
involve encoding and decoding operations that warrant being tested.

This test borrows its design from the `test_diff.py` unit test file.

@Byron Byron left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, looks good to me!

@Byron
Byron merged commit 4e212c6 into gitpython-developers:main May 9, 2024
@DaveLak
DaveLak deleted the add-diff-fuzz-target branch May 9, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants