Lines Matching +full:memory +full:- +full:region

1 //===-- sanitizer/asan_interface.h ------------------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
21 /// Marks a memory region (<c>[addr, addr+size)</c>) as unaddressable.
23 /// This memory must be previously allocated by your program. Instrumented
24 /// code is forbidden from accessing addresses in this region until it is
25 /// unpoisoned. This function is not guaranteed to poison the entire region -
29 /// \note This function is not thread-safe because no two threads can poison or
30 /// unpoison memory in the same memory region simultaneously.
32 /// \param addr Start of memory region.
33 /// \param size Size of memory region.
37 /// Marks a memory region (<c>[addr, addr+size)</c>) as addressable.
39 /// This memory must be previously allocated by your program. Accessing
40 /// addresses in this region is allowed until this region is poisoned again.
41 /// This function could unpoison a super-region of <c>[addr, addr+size)</c> due
44 /// \note This function is not thread-safe because no two threads can
45 /// poison or unpoison memory in the same memory region simultaneously.
47 /// \param addr Start of memory region.
48 /// \param size Size of memory region.
62 /// Marks a memory region as unaddressable.
64 /// \note Macro provided for convenience; defined as a no-op if ASan is not
67 /// \param addr Start of memory region.
68 /// \param size Size of memory region.
72 /// Marks a memory region as addressable.
74 /// \note Macro provided for convenience; defined as a no-op if ASan is not
77 /// \param addr Start of memory region.
78 /// \param size Size of memory region.
89 /// Returns 1 if <c><i>addr</i></c> is poisoned (that is, 1-byte read/write
99 /// Checks if a region is poisoned.
104 /// \param beg Start of memory region.
105 /// \param size Start of memory region.
181 /// reported - for example, "heap-use-after-free". Otherwise returns an empty
188 /// Possible return values are <c>global</c>, <c>stack</c>, <c>stack-fake</c>,
189 /// <c>heap</c>, <c>heap-invalid</c>, <c>shadow-low</c>, <c>shadow-gap</c>,
190 /// <c>shadow-high</c>, and <c>unknown</c>.
200 /// \param[out] region_address Address of the region.
201 /// \param[out] region_size Size of the region in bytes.
239 /// Gets the current shadow memory mapping (useful for calling from the
256 /// \param access_size Size of the memory access of the ASan error.
268 /// \param callback User-provided function.
272 /// User-provided callback on ASan errors.
283 /// User-provided default option settings.
306 /// If <c><i>fake_stack</i></c> is non-NULL and <c><i>addr</i></c> belongs to a
325 /// Performs shadow memory cleanup of the current thread's stack before a
328 /// To avoid false positives on the stack, must be called before no-return