299hz
Platinian
I have encountered the following issue: I am using a hook to replace arbitrary data with new data. Specifically, I hook into the strlen function to overwrite data in memory. I am able to write a new data string that is longer than the original one.
The problem is that if the original data is located in the .rodata segment, when it is loaded into memory and I replace it with longer data, it destroys adjacent data.
What is the best way to fix this problem?
The problem is that if the original data is located in the .rodata segment, when it is loaded into memory and I replace it with longer data, it destroys adjacent data.
What is the best way to fix this problem?