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 accesses 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::Retain 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