|
|
|
|
|
by foldr
327 days ago
|
|
It probably depends on how exactly the corruption happens. If you overwrite a pointer with an integer value, then the integer is statistically unlikely to correspond to a valid memory address. On the other hand, if you overwrite a pointer with a pointer, or an integer with an integer, all bets are off. |
|
On 64-bit systems, and even then, it depends on the system’s memory layout (I think most integer values in programs are < 2³²)