aboutsummaryrefslogtreecommitdiff
path: root/core/kernel
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2017-10-05 14:23:54 +0200
committerJérôme Forissier <jerome.forissier@linaro.org>2017-11-09 12:56:19 +0100
commit24fe80157245314ed9070f9623e29d653d6ef187 (patch)
treeb18e26e93a5c99871d39528a8837ddcde1a17a82 /core/kernel
parentef86a1fe4b6fb065883785aa9ddb5adce9b16628 (diff)
core: asan_tag_access() ignore null ranges
asan_tag_access() should ignore null ranges to make tagging of areas easier. Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core/kernel')
-rw-r--r--core/kernel/asan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/kernel/asan.c b/core/kernel/asan.c
index 6a1b58f6..e490ca6a 100644
--- a/core/kernel/asan.c
+++ b/core/kernel/asan.c
@@ -123,7 +123,7 @@ void asan_tag_no_access(const void *begin, const void *end)
void asan_tag_access(const void *begin, const void *end)
{
- if (!asan_va_base)
+ if (!asan_va_base || (begin == end))
return;
assert(va_range_inside_shadow(begin, end));