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 possible overflow of tx params #1393

Merged

Conversation

ClementWalter
Copy link
Member

@ClementWalter ClementWalter commented Sep 5, 2024

Time spent on this PR: 0.2

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

The usage of bytes_to_felt and bytes_to_uint256 while decoding the tx is not checking possible overflow of the data.

Resolves #1374

What is the new behavior?

Raise a CairoVM error.


This change is Reviewable

enitrat
enitrat previously approved these changes Sep 5, 2024
@ClementWalter ClementWalter merged commit 1046bdd into kkrt-labs:main Sep 5, 2024
6 checks passed
@ClementWalter ClementWalter deleted the cw/assert-tx-params-overflow branch September 5, 2024 13:13
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.

bug: maximum length checks for bytes_to_felt and bytes_to_uint256
2 participants