DescriptionFix heap-use-after-free in WebSocketHost::AddChannel()
WebSocketHost can be deleted in channel_->SendAddChannelRequest() and this
caused heap-use-after-free when |pending_flow_control_quota_| is accessed in
WebSocketHost::AddChannel().
This CL fixes it by posting OnFlowControl() with WeakPtr instead of calling
SendFlowControl() directly in WebSocketHost::AddChannel().
BUG=466335
Committed: https://crrev.com/d3a1d188162e45f75c87a218a70681c5d92139a8
Cr-Commit-Position: refs/heads/master@{#320260}
Patch Set 1 #Patch Set 2 : #
Total comments: 4
Patch Set 3 : Comment fix. #Messages
Total messages: 10 (2 generated)
|