On Windows, we have to know if a memory to be protected is mapped or not.
On POSIX, Mprotect was semantically different from mprotect most people know.
Details
- Reviewers
glider
Diff Detail
Event Timeline
I'll go ahead and commit it, since Alexander is out of the office already and we've previously discussed the new naming.
Fingers crossed, this doesn't break on Mac.
LGTM with nits.
lib/asan/asan_rtl.cc | ||
---|---|---|
300 | The argument name "a" is meaningless, can you please fix? | |
lib/sanitizer_common/sanitizer_posix.cc | ||
202 | Why not return an uptr here? |
lib/sanitizer_common/sanitizer_linux.cc | ||
---|---|---|
132 | This is incorrect on Linux/x86-64. Pointers passed to return internal_syscall(SYSCALL(mprotect), (uptr)addr, length, prot); |
The argument name "a" is meaningless, can you please fix?
(I know it was meaningless before)