diff options
author | Bill Seurer <seurer@linux.vnet.ibm.com> | 2018-04-18 07:02:40 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-04-18 09:02:40 +0200 |
commit | 19ddb884ebb2f39535d8e527c02c576fb768333b (patch) | |
tree | efcfa6c96dc88e55835463db1ef651563015f859 /libsanitizer | |
parent | 715dd933bd56edc7498495dc7dfe66768347f7b5 (diff) | |
download | gcc-19ddb884ebb2f39535d8e527c02c576fb768333b.zip gcc-19ddb884ebb2f39535d8e527c02c576fb768333b.tar.gz gcc-19ddb884ebb2f39535d8e527c02c576fb768333b.tar.bz2 |
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
Diffstat (limited to 'libsanitizer')
-rw-r--r-- | libsanitizer/ChangeLog | 6 | ||||
-rw-r--r-- | libsanitizer/asan/asan_allocator.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index 57d5640..922e947 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -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 diff --git a/libsanitizer/asan/asan_allocator.h b/libsanitizer/asan/asan_allocator.h index 63260ff..287ff30 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 |