Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
capi: Bubble up blaze_syms allocation errors properly
convert_symbolizedresults_to_c() is a fallible function, but so far we have not checked its result but just returned it straight away. That can result in a NULL pointer being returned without an error code set. Despite being highly unlikely (Rust code would just panic earlier on allocation failure) as it's only our C layer that handles these situations more gracefully, this is not ideal and counter to our stated contract. Make sure to check the function's return value and set the last error accordingly. Signed-off-by: Daniel Müller <[email protected]>
- Loading branch information