Tobias Frost 3afc8f0a3f Fix process_munmap not handling munmap correctly.
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.
2022-06-24 10:55:50 +02:00
..
bfdinc.h fix copyright 2018-04-12 11:11:58 +02:00
binfile.c Fix compilation issue with newer binutils 2022-06-09 13:33:16 +02:00
binfile.h fix copyright 2018-04-12 11:11:58 +02:00
client.c Disable unused return code warning for unreachable code. 2018-05-07 17:49:47 +02:00
client.h fix copyright 2018-04-12 11:11:58 +02:00
dump.c fix copyright 2018-04-12 11:11:58 +02:00
dump.h fix copyright 2018-04-12 11:11:58 +02:00
job.c fix copyright 2018-04-12 11:11:58 +02:00
job.h fix copyright 2018-04-12 11:11:58 +02:00
process.c Fix process_munmap not handling munmap correctly. 2022-06-24 10:55:50 +02:00
process.h fix copyright 2018-04-12 11:11:58 +02:00
readline.c Use rl_clear_history only if available, fallback to clear_history if not. 2022-06-10 12:25:25 +02:00
readline.h fix copyright 2018-04-12 11:11:58 +02:00