I am creating a very basic version of exec() using C for a very simple custom executable type and this necessitates loading the to-be-executed custom binary into newly mapped memory in my existing process. As I am randomizing the base address for the "new process", what is the best way to check that the random address will not collide with existing memory maps so I can ensure memory safety?
Asked
Active
Viewed 21 times
0
-
Relevant: https://stackoverflow.com/questions/53022573/finding-mapped-memory-from-inside-a-process – Ian Abbott Oct 20 '21 at 14:11