mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-25 07:35:50 -04:00
bed9991857
add missing null ptr check in alloc example `alloc` can return null on OOM, if I understood correctly. So we should never just deref a pointer we get from `alloc`.