If these sizes do not match, asan will not work as expected.
If possible, assert at compile time that the vm size is less than or equal to mmap range.
If a compile time assert is not possible, check at run time (for iOS)
rdar://76477969
Differential D100239
[compiler-rt] assert max virtual address is <= mmap range size aralisza on Apr 9 2021, 5:48 PM. Authored by
Details If these sizes do not match, asan will not work as expected. If possible, assert at compile time that the vm size is less than or equal to mmap range. rdar://76477969
Diff Detail
Event Timeline
Comment Actions LGTM apart from the static keyword which "I think" shouldn't be necessary here.
|
Needs braces or CHECK_LE moved before if.