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

fix: add check before allocation in SimpleCoder::decode_one() #689

Merged
merged 1 commit into from
May 5, 2024
Merged

fix: add check before allocation in SimpleCoder::decode_one() #689

merged 1 commit into from
May 5, 2024

Conversation

StackOverflowExcept1on
Copy link
Contributor

Motivation

Resolves #682

Since even things like Paradigm's ExEx Rollup rely on SimpleCoder in examples, it makes sense to add extra checks against potential attackers who might allocate too much memory.

@onbjerg onbjerg added the enhancement New feature or request label May 5, 2024
@DaniPopes DaniPopes merged commit 20b8152 into alloy-rs:main May 5, 2024
24 checks passed
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] SimpleCoder should validate num_bytes in decode_one
3 participants