Uprev //base/third_party/symbolize
This CL update //base/third_party/symbolize to the latest version by
copying upstream symbolize.{h,cc} and demangle.{h,cc} as-is, so
that google::Symbolize() gets thread-safe.
//sandbox change is needed to allow pread() used by symbolize.cc.
This should be safe since we already allow lseek() and read().
Bug: 904743
Change-Id: I50b8389dfa18175e8c734c26440f651f74e6daa4
Reviewed-on: https://chromium-review.googlesource.com/c/1334991
Reviewed-by: Robert Sesek <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Reviewed-by: Derek Schuff <[email protected]>
Reviewed-by: Gabriel Charette <[email protected]>
Commit-Queue: Taiju Tsuiki <[email protected]>
Cr-Commit-Position: refs/heads/master@{#613679}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index fb849b1..65b0e43 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -343,6 +343,7 @@
),
True,
(
+ r'^base[\\/]third_party[\\/]symbolize[\\/].*',
r'^third_party[\\/]abseil-cpp[\\/].*',
),
),
@@ -3171,7 +3172,7 @@
def _CheckForInvalidOSMacros(input_api, output_api):
"""Check all affected files for invalid OS macros."""
bad_macros = []
- for f in input_api.AffectedFiles():
+ for f in input_api.AffectedSourceFiles(None):
if not f.LocalPath().endswith(('.py', '.js', '.html', '.css', '.md')):
bad_macros.extend(_CheckForInvalidOSMacrosInFile(input_api, f))