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 PASESession and CASESession use-after-free
PASESession and CASESession clear exchange contexts for which they are registered as delegate without closing them. This leads to a situation where exchanges can callback into these objects after they are freed. This commit fixes the problem by setting the exchange context delegates to nullptr before clearing the exchange contexts. Fixes project-chip#13146
- Loading branch information
1 parent
d163857
commit df055c5
Showing
2 changed files
with
6 additions
and
0 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