Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

coap_req: fix use alloc/free issues #453

Merged
merged 3 commits into from
Feb 9, 2024
Merged

coap_req: fix use alloc/free issues #453

merged 3 commits into from
Feb 9, 2024

Conversation

mniestroj
Copy link
Collaborator

Fix undefined behavior related to free() of uninitialized pointer. Just
return early when allocation with golioth_coap_req_new() has failed.

Free coap_req when scheduling it for sending has failed.

Fix undefined behavior related to free() of uninitialized pointer. Just
return early when allocation with golioth_coap_req_new() has failed.

Signed-off-by: Marcin Niestroj <[email protected]>
Fix undefined behavior related to free() of uninitialized pointer. Just
return early when allocation with golioth_coap_req_new() has failed.

Signed-off-by: Marcin Niestroj <[email protected]>
Free 'coap_req' when scheduling it for sending has failed.

Signed-off-by: Marcin Niestroj <[email protected]>
Copy link

github-actions bot commented Feb 8, 2024

Visit the preview URL for this PR (updated for commit 2084bc0):

https://golioth-zephyr-sdk-doxygen-dev--pr453-coap-req-fixes-mxptsy7t.web.app

(expires Thu, 15 Feb 2024 12:54:11 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a389eefadf4b4b68a539327b3459dd66c142cf49

@mniestroj mniestroj merged commit 4f1538d into main Feb 9, 2024
11 of 12 checks passed
@mniestroj mniestroj deleted the coap-req-fixes branch February 9, 2024 15:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants