diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-02-08 12:59:42 +0000 |
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-02-08 12:59:42 +0000 |
| commit | 0b805cc75cf2397c9fce9cf47ac728e88fb3185b (patch) | |
| tree | 9084eba86221953f2b71fa81d34d7a76927a3a4e /compiler-rt/lib/asan/asan_allocator.h | |
| parent | f63b77be7ffaab903609793154871600c786b632 (diff) | |
| download | bcm5719-llvm-0b805cc75cf2397c9fce9cf47ac728e88fb3185b.tar.gz bcm5719-llvm-0b805cc75cf2397c9fce9cf47ac728e88fb3185b.zip | |
[asan] Fix off-by-one in AddrIsAtRight.
llvm-svn: 174710
Diffstat (limited to 'compiler-rt/lib/asan/asan_allocator.h')
| -rw-r--r-- | compiler-rt/lib/asan/asan_allocator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/asan_allocator.h b/compiler-rt/lib/asan/asan_allocator.h index ac7adc62741..9ba25424505 100644 --- a/compiler-rt/lib/asan/asan_allocator.h +++ b/compiler-rt/lib/asan/asan_allocator.h @@ -71,7 +71,7 @@ class AsanChunkView { return false; } bool AddrIsAtRight(uptr addr, uptr access_size, sptr *offset) { - if (addr + access_size >= End()) { + if (addr + access_size > End()) { *offset = addr - End(); return true; } |

