-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
samples: matter: Added nullptr checks after memory allocation #19974
samples: matter: Added nullptr checks after memory allocation #19974
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: fa1888eae4547b710c9d1ee364fe4d7bff8c51d2 more detailssdk-nrf:
matter:
Github labels
List of changed files detected by CI (23)
Outputs:ToolchainVersion: Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few more unchecked allocations in lambda captures that are later used in BindingHandler::OnInvokeCommandSucces
(thermostat, light_bulb, matter_bridge). We can add check there.
In few places there are missing nullptr checks, what can lead to using not allocated memory. Signed-off-by: Kamil Kasperczyk <[email protected]>
6b61c88
to
8571f61
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Kamil it looks great 👍
Btw. Don't we need to increase some of the heap size? While we are now protected, the issue was triggered with normal condition.
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
@adigie @ArekBalysNordic please take a look once again, as I've introduced some new configuration changes (also there is another PR linked) |
You can find the documentation preview for this PR at this link. Note: This comment is automatically posted by the Documentation Publish GitHub Action. |
Removed the common mpsl stack size config to the Kconfig.defaults. Additionally removed some configuration leftover for the 54L10. Signed-off-by: Kamil Kasperczyk <[email protected]>
94d0ba9
to
fa1888e
Compare
In few places there are missing nullptr checks, what can lead to using not allocated memory.