mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Fix AllowLlvmSanitizers for Msan.
PiperOrigin-RevId: 319947612 Change-Id: I6485d8282381c4cb2be05e138e007ccbb3e5d956
This commit is contained in:
parent
228f3e7ed1
commit
a602177943
|
@ -175,7 +175,8 @@ PolicyBuilder& PolicyBuilder::AllowSystemMalloc() {
|
|||
}
|
||||
|
||||
PolicyBuilder& PolicyBuilder::AllowLlvmSanitizers() {
|
||||
#if defined(ADDRESS_SANITIZER) || defined(THREAD_SANITIZER)
|
||||
#if defined(ADDRESS_SANITIZER) || defined(MEMORY_SANITIZER) || \
|
||||
defined(THREAD_SANITIZER)
|
||||
AddPolicyOnSyscall(__NR_madvise, {
|
||||
ARG_32(2),
|
||||
JEQ32(MADV_DONTDUMP, ALLOW),
|
||||
|
|
Loading…
Reference in New Issue
Block a user