Skip to content

Add indirect memory safety violations#368

Open
jkotas wants to merge 2 commits into
mainfrom
indirect-violation
Open

Add indirect memory safety violations#368
jkotas wants to merge 2 commits into
mainfrom
indirect-violation

Conversation

@jkotas
Copy link
Copy Markdown
Member

@jkotas jkotas commented May 9, 2026

No description provided.

@jkotas jkotas requested a review from agocke May 9, 2026 02:14

**Alignment of managed references**

Safe code must be prohibited from creating unaligned managed references. Managed refereces are often pinned as unmanaged pointers and passed to native code using C/C++ conventions. C/C++ requires that all pointers are properly aligned, the behavior is undefined otherwise and it can lead to memory safety violations.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

If there are more non-obvious interactions with memory model, we can mention them here as concrete examples.

Comment thread accepted/2025/memory-safety/caller-unsafe.md Outdated
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