mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-22 16:44:32 +01:00
Tighten up the assertion: because size can't be 0 and even if sm_space is equal
to sm_size, any 'sm_space - size' will be less than sm_size. MFC after: 3 days
This commit is contained in:
parent
837a617728
commit
97e9ad8ec4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236250
@ -195,7 +195,7 @@ space_map_remove(space_map_t *sm, uint64_t start, uint64_t size)
|
||||
}
|
||||
VERIFY3U(ss->ss_start, <=, start);
|
||||
VERIFY3U(ss->ss_end, >=, end);
|
||||
VERIFY(sm->sm_space - size <= sm->sm_size);
|
||||
VERIFY(sm->sm_space - size < sm->sm_size);
|
||||
|
||||
left_over = (ss->ss_start != start);
|
||||
right_over = (ss->ss_end != end);
|
||||
|
Loading…
Reference in New Issue
Block a user