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

Memory out of bound issue for contract-call? #564

Open
Acaccia opened this issue Nov 20, 2024 · 1 comment
Open

Memory out of bound issue for contract-call? #564

Acaccia opened this issue Nov 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Acaccia Acaccia added the bug Something isn't working label Nov 20, 2024
@github-project-automation github-project-automation bot moved this to Status: 🆕 New in Stacks Core Eng Nov 20, 2024
@Acaccia
Copy link
Collaborator Author

Acaccia commented Dec 2, 2024

The problem happens here: https://github.com/stacks-network/stacks-core/blob/28c1d9eecfd26443b6f78de754b51b9dcfac8402/clarity/src/vm/clarity_wasm.rs#L548-L554

We write the arguments to memory after stack-pointer's value, but we haven't allocated any space for them before. So if the arguments are bigger than the remaining of the allocated pages, we go out of bounds.

@Acaccia Acaccia self-assigned this Dec 2, 2024
@Acaccia Acaccia removed their assignment Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Status: 🆕 New
Development

No branches or pull requests

1 participant