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

Bug: memory access out of bounds #59

Open
smartcontracts opened this issue Nov 24, 2024 · 1 comment
Open

Bug: memory access out of bounds #59

smartcontracts opened this issue Nov 24, 2024 · 1 comment

Comments

@smartcontracts
Copy link

Getting memory access out of bounds when running this tool.

$ npx @defi-wonderland/natspec-smells --include "src/**/*.sol"
RuntimeError: memory access out of bounds
    at wasm://wasm/0551ebc6:wasm-function[317]:0x2a6aa
    at wasm://wasm/0551ebc6:wasm-function[42983]:0x13a6854
    ...

Against https://github.com/ethereum-optimism/optimism/tree/develop/packages/contracts-bedrock

@gas1cent
Copy link
Member

The error is due to a memory issue in solc that has been resolved recently, see this issue.

If you're using Solidity version older than 0.8.28, one possible remedy is running natspec-smells on a subset of contracts instead of the whole codebase.

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

No branches or pull requests

2 participants