+
Skip to content

write: fix handling of forward references in expressions #777

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

Merged
merged 1 commit into from
Jul 6, 2025

Conversation

philipc
Copy link
Collaborator

@philipc philipc commented Jul 5, 2025

Writing a reference can fail when:

  • an expression contains a forward reference to a unit entry
  • an expression or attribute contains a reference to a deleted entry

Return an error instead of hitting a debug assertion or writing a zero.

There was code that was meant to handle this already for forward references,
but it was wrong.

@philipc philipc force-pushed the write-forward-ref branch from 6b64ed6 to 5947ba7 Compare July 6, 2025 01:48
Writing a reference can fail when:
- an expression contains a forward reference to a unit entry
- an expression or attribute contains a reference to a deleted entry

Return an error instead of hitting a debug assertion or writing a zero.

There was code that was meant to handle this already for forward references,
but it was wrong.
@philipc philipc force-pushed the write-forward-ref branch from 5947ba7 to 4b44f13 Compare July 6, 2025 02:09
@philipc philipc merged commit c0a9abb into gimli-rs:master Jul 6, 2025
20 checks passed
@philipc philipc deleted the write-forward-ref branch July 6, 2025 03:40
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.

1 participant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载