In the StackGuard approach to solving the buffer overflow problem, the compiler inserts a canary value on the memory location before the return address in the stack. The canary value is randomly generated. When there is a return from the function call, the compiler checks if the canary value has been overwritten or not. Do you think that this approach would work? If yes, please explain why it works; if not, please give a counterexample.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.