From 19ddb884ebb2f39535d8e527c02c576fb768333b Mon Sep 17 00:00:00 2001 From: Bill Seurer Date: Wed, 18 Apr 2018 07:02:40 +0000 Subject: [PATCH] re PR sanitizer/85389 (posix_memalign() crash with address sanitizer when passing invalid arguments) PR sanitizer/85389 * asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change from 0xa0000000000ULL to ~(uptr)0. From-SVN: r259459 --- libsanitizer/ChangeLog | 6 ++++++ libsanitizer/asan/asan_allocator.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index 57d5640ac6c..922e947af08 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -1,3 +1,9 @@ +2018-04-18 Bill Seurer + + PR sanitizer/85389 + * asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change + from 0xa0000000000ULL to ~(uptr)0. + 2018-03-19 Jakub Jelinek PR sanitizer/84761 diff --git a/libsanitizer/asan/asan_allocator.h b/libsanitizer/asan/asan_allocator.h index 63260ff9895..287ff304fbb 100644 --- a/libsanitizer/asan/asan_allocator.h +++ b/libsanitizer/asan/asan_allocator.h @@ -122,7 +122,7 @@ const uptr kAllocatorSpace = ~(uptr)0; const uptr kAllocatorSize = 0x40000000000ULL; // 4T. typedef DefaultSizeClassMap SizeClassMap; # elif defined(__powerpc64__) -const uptr kAllocatorSpace = 0xa0000000000ULL; +const uptr kAllocatorSpace = ~(uptr)0; const uptr kAllocatorSize = 0x20000000000ULL; // 2T. typedef DefaultSizeClassMap SizeClassMap; # elif defined(__aarch64__) && SANITIZER_ANDROID -- 2.30.2