erpc
erpc copied to clipboard
[QUESTION] Why in erpc_setup_mbf_XXX failure is fatal?
If you didn't find answer in existing open/closed issues you may ask here
In static mbf setup, in case that there is no more buffers assert is called: https://github.com/EmbeddedRPC/erpc/blob/5c2c6b76cf29ac124aa6a4f4cff6fae89f988983/erpc_c/setup/erpc_setup_mbf_static.cpp#L70 In dynamic, if allocation failed then the NULL pointer will be set as buffer: https://github.com/EmbeddedRPC/erpc/blob/5c2c6b76cf29ac124aa6a4f4cff6fae89f988983/erpc_c/setup/erpc_setup_mbf_dynamic.cpp#L33 I would expect in both cases to return error. Why is current implementation as is? (or it is a bug?)
Steps you didn't forgot to do
- [X] I checked if there is no related issue opened/closed.
- [X] I checked that there doesn't exist opened/closed PR which is solving this issue.
- [X] I looked in documentation if there is related information.