DescriptionFix shutdown UAF in MessagePipeDispatcher in new Mojo EDK.
The problem was that the PostTask to the IO thread might not run if the IO thread has shutdown. In that case the MessagePipeDispatcher would get destructed, and RawChannel (called by IO thread destruction) can call its OnError method. Fix this by manually refcounting so that in this situation we just leak the MessagePipeDispatcher instead.
BUG=561803
Committed: https://crrev.com/d0a0ab7efa8f9e7eb2124468070e79c2786113a8
Cr-Commit-Position: refs/heads/master@{#365881}
Patch Set 1 #Patch Set 2 : enable new EDK for try run #Patch Set 3 : undo new EDK by default #
Total comments: 4
Messages
Total messages: 9 (3 generated)
|