Descriptionmojo::RawChannelWin: Use GetOverlappedResult() to retrive read bytes.
The MSDN document suggests that with overlapped I/O, |lpNumberOfBytesRead|
parameter of ReadFile() API isn't reliable and shouldn't be used.
GetOverlappedResult() should be used instead, according to the doc.
See: http://msdn.microsoft.com/en-us/library/windows/desktop/aa365467(v=vs.85).aspx
This is a speculative crash fix for crbug.com/41509. The crash happens
only on Windows. The report also implies that there might be some
message duplication.It is possible if the value of |lpNumberOfBytesRead|
is wrong.
BUG=415059
R=viettrungluu@chromium.org
Committed: https://crrev.com/f7ef6dd233c8c0b7d237e35476c44b2c26d2bab0
Cr-Commit-Position: refs/heads/master@{#297500}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Landing #Messages
Total messages: 7 (1 generated)
|