DescriptionAnother attempt to fix a Chrome crash.
From the bug report and the other relevant bug 236392 reported by ASan,
The problem arises when ReadData() had some errors or completed, and then freed
the NetworkStats, but later the callback of the Write() is started on the freed
object. This most likely happened when the initial ReadData() had some errors.
So I did two modifications.
1. For the first time when ReadData is called, I checked the return value.
Only if it is ERR_IO_PENDING, it continues to Send requests.
2. The Write() callback is on a WeakPtr. If the NetworkStats object is freed,
the callback will be a no-op.
BUG=273917
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221644
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|