0

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?

Nayana Chandran
  • 1,502
  • 1
  • 13
  • 27
min
  • 1

0 Answers0