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

Null and enum-discriminant runtime checks in debug builds #262

Open
1 of 3 tasks
nikomatsakis opened this issue Feb 18, 2025 · 2 comments
Open
1 of 3 tasks

Null and enum-discriminant runtime checks in debug builds #262

nikomatsakis opened this issue Feb 18, 2025 · 2 comments

Comments

@nikomatsakis
Copy link
Contributor

nikomatsakis commented Feb 18, 2025

Metadata
Point of contact @1c3t3a
Team(s) compiler, lang, opsem
Goal document 2025h1/null-enum-discriminant-debug-checks

Summary

Add runtime checks to rustc that check for null pointers on pointer access and
invalid enum discriminants. Similar to integer overflow and pointer alignment
checks, this will only be enabled in debug builds.

Tasks and status

@nikomatsakis
Copy link
Contributor Author

This issue is intended for status updates only.

For general questions or comments, please contact the owner(s) directly.

@1c3t3a
Copy link
Member

1c3t3a commented Feb 19, 2025

Status update: The null-checks landed in rust#134424. Next up are the enum discriminant checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Project goal
Development

No branches or pull requests

2 participants