Index: third_party/crashpad/crashpad/util/mach/child_port_handshake.cc |
diff --git a/third_party/crashpad/crashpad/util/mach/child_port_handshake.cc b/third_party/crashpad/crashpad/util/mach/child_port_handshake.cc |
index 51aad9054c63d4d0aca507654ca2d875369aaa74..e3624d70422cfeb535259593382b8de695ab3d43 100644 |
--- a/third_party/crashpad/crashpad/util/mach/child_port_handshake.cc |
+++ b/third_party/crashpad/crashpad/util/mach/child_port_handshake.cc |
@@ -403,20 +403,20 @@ bool ChildPortHandshake::RunClientInternal_ReadPipe(int client_read_fd, |
child_port_token_t* token, |
std::string* service_name) { |
// Read the token from the pipe. |
- if (!LoggingReadFile(client_read_fd, token, sizeof(*token))) { |
+ if (!LoggingReadFileExactly(client_read_fd, token, sizeof(*token))) { |
return false; |
} |
// Read the service name from the pipe. |
uint32_t service_name_length; |
- if (!LoggingReadFile( |
- client_read_fd, &service_name_length, sizeof(service_name_length))) { |
+ if (!LoggingReadFileExactly( |
+ client_read_fd, &service_name_length, sizeof(service_name_length))) { |
return false; |
} |
service_name->resize(service_name_length); |
if (!service_name->empty() && |
- !LoggingReadFile( |
+ !LoggingReadFileExactly( |
client_read_fd, &(*service_name)[0], service_name_length)) { |
return false; |
} |