re PR sanitizer/85389 (posix_memalign() crash with address sanitizer when passing...
authorBill Seurer <seurer@linux.vnet.ibm.com>
Wed, 18 Apr 2018 07:02:40 +0000 (07:02 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 18 Apr 2018 07:02:40 +0000 (09:02 +0200)
PR sanitizer/85389
* asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change
from 0xa0000000000ULL to ~(uptr)0.

From-SVN: r259459

libsanitizer/ChangeLog
libsanitizer/asan/asan_allocator.h

index 57d5640ac6c212fedc616a743293a48650602b47..922e947af08d0e72ccd22fb083f73c601103c784 100644 (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
index 63260ff9895fc0874e26957b9337e5ce16628c80..287ff304fbbadb84d6ab8d52ce99be3299ae1a58 100644 (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