Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Unified Diff: content/gpu/gpu_main.cc

Issue 317503002: AsanCoverage: make the filenames of zygote/gpu coverage files more unique. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/zygote/zygote_main_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 7cfd446cb9219de3421523c0df760dbffb8c155b..894c64894399a994b09acb031c1897c3249897e5 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -450,9 +450,12 @@ bool StartSandboxLinux(const gpu::GPUInfo& gpu_info,
}
#if defined(ADDRESS_SANITIZER)
+ const std::string sancov_file_name =
+ "gpu." + base::Uint64ToString(base::RandUint64());
LinuxSandbox* linux_sandbox = LinuxSandbox::GetInstance();
linux_sandbox->sanitizer_args()->coverage_sandboxed = 1;
- linux_sandbox->sanitizer_args()->coverage_fd = -1;
+ linux_sandbox->sanitizer_args()->coverage_fd =
+ __sanitizer_maybe_open_cov_file(sancov_file_name.c_str());
linux_sandbox->sanitizer_args()->coverage_max_block_size = 0;
#endif
« no previous file with comments | « no previous file | content/zygote/zygote_main_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698