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

Limit max memory allocation by fuzz target #29

Merged
merged 1 commit into from
Dec 26, 2023

Conversation

fintelia
Copy link
Contributor

@fintelia fintelia commented Dec 26, 2023

With this patch, running with cargo fuzz run decode_still -- -rss_limit_mb=5000, and seeded on AFL's webp corpus, I see no fuzzing failures after 40M iterations.

(Maximum resident set size reaches only 2369 MB, so a lower limited could also have been used.)

Resolves #22

@fintelia fintelia merged commit bb34e55 into image-rs:main Dec 26, 2023
9 checks passed
@fintelia fintelia deleted the fuzz-mem-limit branch December 26, 2023 20:21
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.

Fuzz testing
1 participant