Skip to content

Conversation

@rjuju
Copy link
Member

@rjuju rjuju commented Oct 15, 2025

When a var has a special varno (ie a negative varno), we need to resolve the actual underlying Var, as we would otherwise end up reading random memory when trying to access the associated RangeTblEntry. The previous code was correctly resolving such Var, but didn't consider the possibility that the resolved Var could itself have a special varno which needs to be resolved again.

Thanks to Kenny Chen for the report.

@rjuju rjuju self-assigned this Oct 15, 2025
@rjuju rjuju mentioned this pull request Oct 15, 2025
When a var has a special varno (ie a negative varno), we need to resolve the
actual underlying Var, as we would otherwise end up reading random memory when
trying to access the associated RangeTblEntry.  The previous code was correctly
resolving such Var, but didn't consider the possibility that the resolved Var
could itself have a special varno which needs to be resolved again.

Thanks to Kenny Chen for the report.
@rjuju rjuju merged commit 2fd5f59 into master Oct 15, 2025
6 checks passed
@rjuju rjuju deleted the fix_77 branch October 15, 2025 05:52
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