commit | 69e91902f71e2cb4f50779f7b2e8496a5a2ba072 | [log] [tgz] |
---|---|---|
author | David Benjamin <davidben@google.com> | Thu Aug 09 16:39:36 2018 -0500 |
committer | Adam Langley <agl@google.com> | Thu Aug 09 22:09:48 2018 +0000 |
tree | 38164461cdcfd64d46938f16acb115b096cbbbfe | |
parent | e9ae99bba28b05742b3f250bb2d8f9a7bc62bf7f [diff] |
Work around missing MSan interceptor for posix_spawn. Change-Id: I910dbfd0f6b0b4ef5a0c5155ee45a1658e1f4e70 Reviewed-on: https://boringssl-review.googlesource.com/30704 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/ssl/test/handshake_util.cc b/ssl/test/handshake_util.cc index 62fbbf7..f839653 100644 --- a/ssl/test/handshake_util.cc +++ b/ssl/test/handshake_util.cc
@@ -345,7 +345,9 @@ return false; } - pid_t handshaker_pid; + // MSan doesn't know that |posix_spawn| initializes its output, so initialize + // it to -1. + pid_t handshaker_pid = -1; int ret = posix_spawn(&handshaker_pid, args[0], &actions, nullptr, args.data(), nullptr); if (posix_spawn_file_actions_destroy(&actions) != 0 ||