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
This commit is contained in:
Bill Seurer 2018-04-18 07:02:40 +00:00 committed by Jakub Jelinek
parent 715dd933bd
commit 19ddb884eb
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2018-04-18 Bill Seurer <seurer@linux.vnet.ibm.com>
PR sanitizer/85389
* asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change
from 0xa0000000000ULL to ~(uptr)0.
2018-03-19 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/84761

View File

@ -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