You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Problem
`Platform::New()` uses placment `new` into a possibly-null pointer.
#### Summary of Changes
Check it.
Fixesproject-chip#4998 platform::New will crash or do other bad things on allocation failure
#### Problem
`Platform::New()` uses placment `new` into a possibly-null pointer.
#### Summary of Changes
Check it.
Fixes#4998 platform::New will crash or do other bad things on allocation failure
Problem
platform::New looks like this:
but
MemoryAlloc
can return null.Proposed Solution
Add a null-check, return null if
MemoryAlloc
returns null.@kpschoedel @andy31415
The text was updated successfully, but these errors were encountered: