Enable AsanRawPtrServiceV2 for LibFuzzer by decoupling build configs
This CL restructures the AsanRawPtrService integration to fix build
dependency issues and resolve sanitizer false positives.
Key changes:
- Decouple from `//build`: Moves the `-fsanitize-recover=address`
configuration to `//base` using `all_dependent_configs`. This
ensures the flag is only active when
`use_asan_backup_ref_ptr_v2=true`, preventing PartitionAlloc GN
variables from polluting the global `//build` directory and
breaking standalone projects like V8.
- Isolate as a `source_set`: Extracts `asan_raw_ptr_service` into
a dedicated `source_set`. This cleanly scopes the new compiler
flags and guarantees that inlined functions (from libc++ or
PartitionAlloc) aren't accidentally instrumented by ASan,
preventing performance regressions.
Bug: 447520906
Change-Id: I8de5d5f21965ed748a423b8bf4c9201c201a9c66
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7741881
Commit-Queue: Takashi Sakamoto <tasak@google.com>
Reviewed-by: Keishi Hattori <keishi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1619382}
NOKEYCHECK=True
GitOrigin-RevId: 5cadc03d73d8630975295207c93b523d1bac039b
1 file changed