| Index: content/gpu/gpu_main.cc
|
| diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
|
| index 0dac81d459486c2f04a8a862b9afedc92e47e284..28015aa5c5c77bd9849935afa31b3654a664811b 100644
|
| --- a/content/gpu/gpu_main.cc
|
| +++ b/content/gpu/gpu_main.cc
|
| @@ -51,6 +51,10 @@
|
| #include "content/public/common/sandbox_init.h"
|
| #endif
|
|
|
| +#if defined(ADDRESS_SANITIZER)
|
| +#include <sanitizer/asan_interface.h>
|
| +#endif
|
| +
|
| const int kGpuTimeout = 10000;
|
|
|
| namespace content {
|
| @@ -426,6 +430,14 @@ bool StartSandboxLinux(const gpu::GPUInfo& gpu_info,
|
| // has really been stopped.
|
| LinuxSandbox::StopThread(watchdog_thread);
|
| }
|
| +
|
| +#if defined(ADDRESS_SANITIZER)
|
| + LinuxSandbox* linux_sandbox = LinuxSandbox::GetInstance();
|
| + linux_sandbox->sanitizer_args()->coverage_sandboxed = 1;
|
| + linux_sandbox->sanitizer_args()->coverage_fd = -1;
|
| + linux_sandbox->sanitizer_args()->coverage_max_block_size = 0;
|
| +#endif
|
| +
|
| // LinuxSandbox::InitializeSandbox() must always be called
|
| // with only one thread.
|
| res = LinuxSandbox::InitializeSandbox();
|
|
|