| Index: third_party/crashpad/crashpad/util/net/http_transport_win.cc
|
| diff --git a/third_party/crashpad/crashpad/util/net/http_transport_win.cc b/third_party/crashpad/crashpad/util/net/http_transport_win.cc
|
| index 6ee8e5ff34f38710791653f90c9ea7650cf316dc..58ecc4786b249d2894094a058d6aedfebaf4a995 100644
|
| --- a/third_party/crashpad/crashpad/util/net/http_transport_win.cc
|
| +++ b/third_party/crashpad/crashpad/util/net/http_transport_win.cc
|
| @@ -179,8 +179,12 @@ bool HTTPTransportWin::ExecuteSynchronously(std::string* response_body) {
|
| uint8_t buffer[kBufferSize];
|
| FileOperationResult bytes_to_write =
|
| body_stream()->GetBytesBuffer(buffer, sizeof(buffer));
|
| - if (bytes_to_write == 0)
|
| + if (bytes_to_write == 0) {
|
| break;
|
| + } else if (bytes_to_write < 0) {
|
| + LOG(ERROR) << "GetBytesBuffer failed";
|
| + return false;
|
| + }
|
| post_data.insert(post_data.end(), buffer, buffer + bytes_to_write);
|
| }
|
|
|
|
|