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

Avoid UB if the CFData pointer is NULL #688

Merged
merged 1 commit into from
Jul 14, 2024
Merged

Conversation

kornelski
Copy link
Contributor

There's no guarantee that CFDataGetBytePtr will return a non-NULL pointer, and therefore creating a slice from it can be Undefined Behavior in Rust.

kornelski/rust-security-framework#206

kornelski added a commit to kornelski/rust-security-framework that referenced this pull request Jul 14, 2024
@jdm jdm added this pull request to the merge queue Jul 14, 2024
Merged via the queue into servo:main with commit 3570256 Jul 14, 2024
7 checks passed
@kornelski kornelski deleted the null-slice branch July 14, 2024 17:59
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.

3 participants