-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 DisarmDone commissionee misssing null check #22146
Merged
woody-apple
merged 3 commits into
project-chip:master
from
panliming-tuya:fix-disarmdone-crash
Aug 29, 2022
Merged
Fix DisarmDone commissionee misssing null check #22146
woody-apple
merged 3 commits into
project-chip:master
from
panliming-tuya:fix-disarmdone-crash
Aug 29, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Problem: Obviously invoke commitee pointer is before the null check. In low probability cases, commissioning failure before WiFiNetworkSetup and removing the device connection in the App will cause crash.
PR #22146: Size comparison from 3a2337e to 1e9ac7c Increases (5 builds for bl602, cc13x2_26x2, esp32, psoc6)
Decreases (5 builds for bl602, cc13x2_26x2, cyw30739, linux)
Full report (32 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, telink)
|
andy31415
approved these changes
Aug 25, 2022
woody-apple
approved these changes
Aug 25, 2022
bzbarsky-apple
approved these changes
Aug 27, 2022
PR #22146: Size comparison from 55f9049 to bfaeec7 Increases (3 builds for cc13x2_26x2, nrfconnect)
Decreases (11 builds for cc13x2_26x2, esp32, linux, nrfconnect, psoc6, telink)
Full report (32 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, telink)
|
isiu-apple
pushed a commit
to isiu-apple/connectedhomeip
that referenced
this pull request
Sep 16, 2022
* Fix DisarmDone commissionee misssing null check Problem: Obviously invoke commitee pointer is before the null check. In low probability cases, commissioning failure before WiFiNetworkSetup and removing the device connection in the App will cause crash. * Make sure nodeId has a value.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Obviously,
commissionee->GetDeviceId()
is before the null check.In low probability cases, after commissioning failure before WiFiNetworkSetup and the device session be removed, crash will accur.
Change overview
Change
commissionee->GetDeviceId()
toNodeId nodeId = mDeviceBeingCommissioned->GetDeviceId()