mirror of
https://github.com/sstefani/mtrace.git
synced 2025-12-11 22:19:52 +08:00
munmap(2) will unmap any page "it touches", the parameters given to it do not necessarily need to match the ones given to mmap(2). It is legit to specify pages that are not mapped at all, ranges that span multiple mappings, with or without holes… Beside that, a logic error in calculating the size for process_release_mem() is fixed in the case a munmap would split a previous allocation in two maps. Similar fix also for the case where the freed page is at the end of the allocated area. |
||
|---|---|---|
| .. | ||
| bfdinc.h | ||
| binfile.c | ||
| binfile.h | ||
| client.c | ||
| client.h | ||
| dump.c | ||
| dump.h | ||
| job.c | ||
| job.h | ||
| process.c | ||
| process.h | ||
| readline.c | ||
| readline.h | ||