[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:

committed by
Chromium LUCI CQ

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