Skip to content
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

Check vtable validity when explicitly creating wide pointer #3738

Open
celinval opened this issue Nov 25, 2024 · 0 comments
Open

Check vtable validity when explicitly creating wide pointer #3738

celinval opened this issue Nov 25, 2024 · 0 comments
Labels
[C] Feature / Enhancement A new feature request or enhancement to an existing feature. [E] Unsupported UB Undefined behavior that Kani does not detect

Comments

@celinval
Copy link
Contributor

Requested feature: Ensure that users do not incorrectly generate invalid vtable data.
Use case: Detect UB due to invalid wide pointer when using APIs such as from_raw_parts.
Link to relevant documentation (Rust reference, Nomicon, RFC):

  • dyn Trait metadata must be a pointer to a compiler-generated vtable for Trait. (For raw pointers, this requirement remains a subject of some debate. [ref]
@celinval celinval added [C] Feature / Enhancement A new feature request or enhancement to an existing feature. [E] Unsupported UB Undefined behavior that Kani does not detect labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C] Feature / Enhancement A new feature request or enhancement to an existing feature. [E] Unsupported UB Undefined behavior that Kani does not detect
Projects
None yet
Development

No branches or pull requests

1 participant