Skip to content
Snippets Groups Projects
Verified Commit 67cc6799 authored by Jacob Lorentzon's avatar Jacob Lorentzon
Browse files

Fix possible UB by checking for null allocating FX.

Namely, the global allocator API in Rust, actually only returns a null
pointer on failure, rather than wrapping it in a Result, which AllocRef
does. Since Box::from_raw(null) is direct UB, this can in theory lead to
very strange behavior.
parent 465c461b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment