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 underconstrained segments #1356

Merged

Conversation

ClementWalter
Copy link
Member

@ClementWalter ClementWalter commented Aug 21, 2024

Time spent on this PR: 0.5

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?

Segments are not constrained enough, making it possible for a malicious prover to tweak tx data.

Resolves #1313

What is the new behavior?

Added more assert to make sure that we don't read data beyond data_len.


This change is Reviewable

obatirou
obatirou previously approved these changes Aug 22, 2024
enitrat
enitrat previously approved these changes Aug 22, 2024
@ClementWalter ClementWalter merged commit 6580989 into kkrt-labs:main Aug 26, 2024
6 checks passed
@ClementWalter ClementWalter deleted the cw/underconstrained-segments branch August 26, 2024 07:55
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: under constrained segments
3 participants