diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-12-19 22:57:02 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-12-19 22:57:02 +0000 |
commit | b74d731fb0bee5f6e4f83966a6003c8a552722b4 (patch) | |
tree | fb32f8d67e5dc8b3066e3b05048bfe60398705bf /compiler-rt/lib/hwasan | |
parent | a01e024ad79edfbb62b6497260bb63675c4be438 (diff) | |
download | bcm5719-llvm-b74d731fb0bee5f6e4f83966a6003c8a552722b4.tar.gz bcm5719-llvm-b74d731fb0bee5f6e4f83966a6003c8a552722b4.zip |
[hwasan] Fix handling of store errors.
llvm-svn: 321121
Diffstat (limited to 'compiler-rt/lib/hwasan')
-rw-r--r-- | compiler-rt/lib/hwasan/hwasan_linux.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/hwasan/hwasan_linux.cc b/compiler-rt/lib/hwasan/hwasan_linux.cc index 9b8613171cb..264046960d8 100644 --- a/compiler-rt/lib/hwasan/hwasan_linux.cc +++ b/compiler-rt/lib/hwasan/hwasan_linux.cc @@ -189,7 +189,7 @@ static AccessInfo GetAccessInfo(siginfo_t *info, ucontext_t *uc) { if ((code & 0xff00) != 0x100) return AccessInfo{0, 0, false, false}; // Not ours. bool is_store = code & 0x10; - unsigned size_log = code & 0xff; + unsigned size_log = code & 0xf; if (size_log > 4 && size_log != 0xf) return AccessInfo{0, 0, false, false}; // Not ours. |