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

fuzzing: remove tar operations in alpine fuzzer #1322

Merged
merged 1 commit into from Feb 3, 2023

Conversation

AdamKorcz
Copy link
Contributor

@AdamKorcz AdamKorcz commented Feb 1, 2023

Signed-off-by: AdamKorcz adam@adalogics.com

Summary

This changes the alpine unmarshalling fuzzer to use an API in go-fuzz-headers that returns a list of flies instead of raw tar bytes: https://github.com/AdamKorcz/go-fuzz-headers-1/blob/9a8d8eeb7d896e8d217a4cfa3f44a6fe4ca7540f/consumer.go#L748. By using this API instead of TarBytes, we can avoid a series of expensive calls in the fuzzer that read and write to the tar bytes when the fuzzer checks and modifies the tar archives. With this change, the fuzzer becomes faster in creating valid tar archives before they are compressed and passed to the target API.

github.com/AdamKorcz/go-fuzz-headers-1 is bumped because TarFiles is a new API.

Release Note

Documentation

Signed-off-by: AdamKorcz <adam@adalogics.com>
@AdamKorcz AdamKorcz requested review from bobcallaway and a team as code owners February 1, 2023 21:02
@asraa asraa merged commit a90366e into sigstore:main Feb 3, 2023
@github-actions github-actions bot added this to the v1.1.0 milestone Feb 3, 2023
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.

None yet

2 participants