mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-11 17:08:42 +00:00
[sanitizer] Fix an edge case in MemoryRangeIsAvailable.
llvm-svn: 226913
This commit is contained in:
parent
e94b7c24c8
commit
d486e09d8e
@ -237,7 +237,8 @@ bool MemoryRangeIsAvailable(uptr range_start, uptr range_end) {
|
||||
while (proc_maps.Next(&start, &end,
|
||||
/*offset*/0, /*filename*/0, /*filename_size*/0,
|
||||
/*protection*/0)) {
|
||||
if (!IntervalsAreSeparate(start, end, range_start, range_end))
|
||||
CHECK_NE(0, end);
|
||||
if (!IntervalsAreSeparate(start, end - 1, range_start, range_end))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user