Skip to content

Fix partial attribute comparisons in 0.6 - #1

Merged
Kyle-Ye merged 1 commit into
release/0.6from
feature/button
Oct 11, 2026
Merged

Kyle-Ye merged 1 commit into
release/0.6from
feature/button

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Oct 11, 2026

Copy link
Copy Markdown
Member

Partial attribute comparisons can use an offset from the start of the layout after their value pointers already include the requested offset. This can copy a nontrivial enum from the wrong address and crash in swift_retain, or compare bytes outside the requested field.

Apply the fix to release/0.6: return the layout offset relative to the requested range and clamp it to the range size. Add four regression tests for enum payloads and case changes, custom equality, and field boundaries.

Upstream PR: jcmosc#79
Related issue: jcmosc#78

Validation

  • All 106 targeted Compute tests passed after rebasing onto release/0.6.
  • All four new regression tests passed against AttributeGraph.

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