mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Make ZipOS mmap safer (#735)
- It now runs entirely under __mmi_lock - Hide implementation strace
This commit is contained in:
parent
e323527ffa
commit
b275e664ec
6 changed files with 44 additions and 29 deletions
|
@ -40,8 +40,6 @@
|
|||
#define ADDR(x) ((int64_t)((uint64_t)(x) << 32) >> 16)
|
||||
#define FRAME(x) ((int)((intptr_t)(x) >> 16))
|
||||
|
||||
static noasan int Munmap(char *, size_t);
|
||||
|
||||
static noasan void MunmapShadow(char *p, size_t n) {
|
||||
intptr_t a, b, x, y;
|
||||
KERNTRACE("MunmapShadow(%p, %'zu)", p, n);
|
||||
|
@ -115,7 +113,7 @@ static noasan void MunmapImpl(char *p, size_t n) {
|
|||
}
|
||||
}
|
||||
|
||||
static noasan int Munmap(char *p, size_t n) {
|
||||
noasan int Munmap(char *p, size_t n) {
|
||||
unsigned i;
|
||||
char poison;
|
||||
intptr_t a, b, x, y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue