forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ResolverProxy use-after-free in HandleNodeBrowse
HandleNodeBrowse decrements the ResolverProxy reference count, which will cause the object to be destructed if the counter reaches 0, and then increments the counter and uses the object, which can be a use-after-free. This commit fixes the problem by ordering Release to occur after Retain. This commit also adds an abort to ReferenceCounted to check for cases like this. Calling Retain on an object with a reference count that has already decremented to 0 is always a bug. Fixes project-chip#13289
- Loading branch information
1 parent
8ba4702
commit 2e44597
Showing
6 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
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
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
Submodule ot-qorvo
updated
47 files
Submodule repo
updated
95 files
Submodule repo
updated
from edb134 to 874261
Submodule repo
updated
33 files