fix(avm): Make the TS simulator lazy read calldata / return data#19843
Merged
IlyasRidhuan merged 3 commits intoJan 23, 2026
Merged
Conversation
IlyasRidhuan
approved these changes
Jan 23, 2026
Merged
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Jan 26, 2026
BEGIN_COMMIT_OVERRIDE fix: SLOAD fuzzing after configurable addr (#19895) fix(avm): Make the TS simulator lazy read calldata / return data (#19843) chore(avm): ECC pre-audit gadget fuzzing (#19739) fix: Fuzzer sometimes creates to radix with num_limbs=0 (#19929) fix: Enforce recipients of l2l1msgs having 20 bytes at most (#19898) fix merge conflict END_COMMIT_OVERRIDE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves https://linear.app/aztec-labs/issue/AVM-208/wrap-calldatareturndata-in-ts-simulator-in-a-lazy-reader-class
Adds an interface for lazily read calldata and returndata. Creates two classes that implement the interface, an array backed one and a memory backed one. Internal calls use the memory backed one and the top level calldata uses the array backed one. In the memory one, memory is accessed at read time, instead of at creation time like we did before.
This should fix the largest diff that we have right now between the TS and CPP versions of the simulator, that is the lazy behavior of calldata and returndata, unblocking the differential fuzzer.