Skip to content

Conversation

@Fibonacci747
Copy link

The hash builtin tracks verified output cells in a Vec where the index equals the memory offset. Using Vec::insert shifted elements and broke this invariant, especially with non-sorted inputs or pre-existing entries. Replace insert with resize(offset + 1, false) and direct assignment to ensure stable indexing and alignment with deduce_memory_cell() and the documented semantics.

@gabrielbosio
Copy link
Collaborator

Duplicate of #2269

@gabrielbosio gabrielbosio marked this as a duplicate of #2269 Dec 2, 2025
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.

2 participants