commit | 8726d30ed0372d085f5d9048ed5a4d62e13015ca | [log] [tgz] |
---|---|---|
author | Tom Sepez <[email protected]> | Wed Jan 29 02:11:08 2025 |
committer | Chromium LUCI CQ <[email protected]> | Wed Jan 29 02:11:08 2025 |
tree | a4f907f4daffea2a9ddf6bf91afc5801aef5e3b2 | |
parent | 501d0be6a009aac9ce7d73d1555f47d5a41235c3 [diff] [blame] |
Suppress unsafe_libc_call warning for initial identified files. See docs/unsafe_buffers.md for details. Enforcement is not yet enabled, but this set of files are not in compliance with the new warnings. Bug: 390223051 Change-Id: I4e24c2141b9399f572678302c833947494098b29 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6187925 Reviewed-by: Daniel Cheng <[email protected]> Commit-Queue: Daniel Cheng <[email protected]> Owners-Override: Daniel Cheng <[email protected]> Cr-Commit-Position: refs/heads/main@{#1412673}
diff --git a/base/process/process_metrics_unittest.cc b/base/process/process_metrics_unittest.cc index ee3ad126..0848bd5 100644 --- a/base/process/process_metrics_unittest.cc +++ b/base/process/process_metrics_unittest.cc
@@ -2,6 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#ifdef UNSAFE_BUFFERS_BUILD +// TODO(crbug.com/390223051): Remove C-library calls to fix the errors. +#pragma allow_unsafe_libc_calls +#endif + #include "base/process/process_metrics.h" #include <stddef.h>