0

[CodeHealth] Add a reason for RAW_PTR_EXCLUSION in sandbox_nt_util.h

The memory might be managed by the OS and not PartitionAlloc.

Bug: 346693833
Change-Id: I122f502e9a60cc6ad0f8be13bc94e67d22a92437
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6298505
Reviewed-by: Alex Gough <ajgo@chromium.org>
Commit-Queue: Oksana Zhuravlova <oksamyt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1429030}
This commit is contained in:
Oksana Zhuravlova
2025-03-06 10:36:55 -08:00
committed by Chromium LUCI CQ
parent e20cc7c8bf
commit b2721bfd07

@ -13,9 +13,10 @@
#include <intrin.h>
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <memory>
#include <optional>
#include "base/containers/span.h"
#include "base/memory/raw_ptr_exclusion.h"
#include "sandbox/win/src/nt_internals.h"
@ -208,8 +209,7 @@ class AutoProtectMemory {
private:
bool changed_;
// This field is not a raw_ptr<> because it was filtered by the rewriter for:
// #addr-of
// RAW_PTR_EXCLUSION: not managed by PartitionAlloc.
RAW_PTR_EXCLUSION void* address_;
size_t bytes_;
ULONG old_protect_;