Avoid use-after-free
SetNotWaitingForResponse can trigger a message pump which can then free the object which |this| points to. This use-after-free can be avoided by not dereferencing |this| after the call, by ensuring that calling SetNotWaitingForResponse is the last thing done. Bug: 1125199 Change-Id: Ie1289c93112151978e6daaa1d24326770028c529 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2407065Reviewed-by:Alex Moshchuk <alexmos@chromium.org> Commit-Queue: Bruce Dawson <brucedawson@chromium.org> Cr-Commit-Position: refs/heads/master@{#806839}
Showing
Please register or sign in to comment