Skip to content

Conversation

gap-editor
Copy link
Contributor

I've added a test case for the invalid tuple offset in ABI decoding. The test will verify that the contract properly handles the case when an invalid tuple offset is provided in calldata. The test creates a simple contract that accepts a tuple structure and then attempts to call this function with an intentionally invalid calldata where the tuple offset (0xffff) points outside the available calldata. This should trigger the validation check in ABIFunctions.cpp and cause a revert.

Copy link

Thank you for your contribution to the Solidity compiler! A team member will follow up shortly.

If you haven't read our contributing guidelines and our review checklist before, please do it now, this makes the reviewing process and accepting your contribution smoother.

If you have any questions or need our help, feel free to post them in the PR or talk to us directly on the #solidity-dev channel on Matrix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants