Fix the use after free bug in QuicChromiumPacketReader.
QuicChromiumPacketReader when processing probing result (aka probing reader), may gets deleted by the QuicChromiumClientSession while the connection stays open. This change grabs a weak_ptr before calling up to session (visitor) and stops future reads if the reader is invalid. Bug: 1014092 Change-Id: I4a1ccc437692b9845c2cb8bf0c6bcc1feb1b7610 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1904526Reviewed-by:Ryan Hamilton <rch@chromium.org> Commit-Queue: Zhongyi Shi <zhongyi@chromium.org> Cr-Commit-Position: refs/heads/master@{#713624}
Showing
Please register or sign in to comment