Skip to content

Conversation

@Bashmunta
Copy link
Contributor

Fixed a logic error in bytes/string slot identification where the base slot value from one variable was reused while scanning all variables, which could produce false positives and imposed O(N^2) complexity. The refactor makes handle_bytes_string operate on a single variable, using that variable’s own base slot and base slot value to compute the data region, and updates identify_bytes_or_string to pass the specific storage entry and its type. This ensures correct mapping between slots and bytes/string variables and reduces complexity to O(N) across bytes/string entries while preserving existing output structure.

Copy link
Collaborator

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense, thank you

@grandizzy grandizzy enabled auto-merge November 19, 2025 09:00
@grandizzy grandizzy added this pull request to the merge queue Nov 19, 2025
Merged via the queue into foundry-rs:master with commit 13815d4 Nov 19, 2025
15 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants