kasan watchpoint: Fix judgment problem
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
parent
4de718f98f
commit
750ae961a8
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ static void kasan_check_watchpoint(FAR const void *addr, size_t size,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (addr + size <= watchpoint->addr ||
|
if (addr + size <= watchpoint->addr ||
|
||||||
addr > watchpoint->addr + watchpoint->size)
|
addr >= watchpoint->addr + watchpoint->size)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue