summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/hwasan/TestCases/sizes.cpp
Commit message (Collapse)AuthorAgeFilesLines
* hwasan: Untag global variable addresses in tests.Peter Collingbourne2019-08-051-7/+9
| | | | | | | | | | | | Once we start instrumenting globals, all addresses including those of string literals that we pass to the operating system will start being tagged. Since we can't rely on the operating system to be able to cope with these addresses, we need to untag them before passing them to the operating system. This change introduces a macro that does so and uses it everywhere it is needed. Differential Revision: https://reviews.llvm.org/D65768 llvm-svn: 367938
* [sanitizer] Implement reallocarray.Evgeniy Stepanov2019-05-011-0/+9
| | | | | | | | | | | | | | | | Summary: It's a cross of calloc and realloc. Sanitizers implement calloc-like check for size overflow. Reviewers: vitalybuka, kcc Subscribers: kubamracek, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61108 llvm-svn: 359708
* gn build: Upgrade to NDK r19.Peter Collingbourne2019-02-051-1/+3
| | | | | | | | | | NDK r19 includes a sysroot that can be used directly by the compiler without creating a standalone toolchain, so we just need a handful of flags to point Clang there. Differential Revision: https://reviews.llvm.org/D57733 llvm-svn: 353139
* [hwasan] Fix malloc overflow detection.Evgeniy Stepanov2018-09-071-0/+80
Check size limit before rounding up, otherwise malloc((size_t)-1) would happily allocate 0 bytes. Steal a nice test case from scudo. llvm-svn: 341612
OpenPOWER on IntegriCloud