Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuzz #427

Merged
merged 18 commits into from
Sep 19, 2024
Merged

Fuzz #427

merged 18 commits into from
Sep 19, 2024

Conversation

rminnich
Copy link
Contributor

This is mpictor's old fuzz stuff all cleaned up.

We can squash these commits, but perhaps, because fuzzing is a bit new, we should leave them as is. I don't know.

Maybe there's no instructive value to keeping the mess separate. 2020 was a long time ago.

mpictor and others added 9 commits September 16, 2024 13:11
Uses github.com/dvyukov/go-fuzz; see fuzz.go for instructions

Signed-off-by: Mark Pictor <[email protected]>
caught with go-fuzz

Signed-off-by: Mark Pictor <[email protected]>
Signed-off-by: Mark Pictor <[email protected]>
Signed-off-by: Mark Pictor <[email protected]>
Signed-off-by: Mark Pictor <[email protected]>
Signed-off-by: Mark Pictor <[email protected]>
compress corpus with xz rather than zip because archive is ~1/10th the size

Signed-off-by: Mark Pictor <[email protected]>
Signed-off-by: Ronald G. Minnich <[email protected]>
@rminnich rminnich mentioned this pull request Sep 16, 2024
@codecov-commenter
Copy link

codecov-commenter commented Sep 16, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.87%. Comparing base (4f59c83) to head (74934f2).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #427      +/-   ##
==========================================
+ Coverage   41.63%   43.87%   +2.23%     
==========================================
  Files         142      142              
  Lines       10728    10748      +20     
==========================================
+ Hits         4467     4716     +249     
+ Misses       5393     5159     -234     
- Partials      868      873       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rminnich
Copy link
Contributor Author

I think it's time to drop the golangci-lint test, it's just not a good thing to have in CI in my view.

@rminnich rminnich requested a review from rjoleary September 16, 2024 20:49
@rminnich
Copy link
Contributor Author

I'll probably squash these as well, given the random bits we don't want, like Gopkg.lock

@rminnich rminnich requested a review from binjip978 September 18, 2024 18:49
Copy link
Collaborator

@binjip978 binjip978 left a comment

Choose a reason for hiding this comment

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

I'm not sure about status of dvyukov/go-fuzz right now, it's half deprecated/alive.

@rminnich
Copy link
Contributor Author

I'm going to push this in. From my looking at the fixes, they are legitimate, regardless of the state of the go-fuzz project.

I've asked Dmitry for the status of go-fuzz.

@rminnich rminnich merged commit 2c70d9e into linuxboot:main Sep 19, 2024
12 checks passed
@mpictor
Copy link
Contributor

mpictor commented Oct 1, 2024

Thanks for taking care of this, I'd completely forgotten about that draft PR!

FWIW it shouldn't be too much trouble to rework the fuzz tests to use go's built-in fuzzing, though translating the corpus would probably be more work than it's worth - if you go that route, I'd drop the testdata tarball.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants