-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix chunkHeader==nullptr in allocateChunk #87
Conversation
Signed-off-by: ChenYing Kuo <[email protected]>
Thanks @evshary . This makes sense. What do you think @evshary @mossmaurice @elBoberido @elfenpiff |
@evshary: Can you please change the target branch to staging, as described in https://github.com/eclipse/iceoryx/blob/master/CONTRIBUTING.md |
@budrus I guess I make something wrong. Should I rebase this fix to staging branch and then PR? |
@evshary Sorry, I will rebase staging, Just a second |
@evshary . Sorry again, can you switch back to master as target. The staging branch got the same restrictions as master from Eclipse. As I don't have the reviewers now, I cannot update the staging branch. We have to figure out how we can manage the staging branch step in future |
Sure. |
I think we need to decide which type of API we want to have, a type safe C++ API or a lowlevel C-ish API? There a pros and cons for both of them. Personally I wouldn't go the C-ish API since it's to C++ to easily create language bindings and to C to make it type safe. |
allocateChunk should return nullptr if chunkHeader==nullptr, or it might cause some problem in returning chunkHeader->payload() and user can't check whether allocate chunk successfully or not.