Question: In class, we gave a very basic macro design to implement stack guard with canary. In that design, we haven t talk about how to
In class, we gave a very basic macro design to implement stack guard with canary. In
that design, we havent talk about how to define SECRETVAR in the macros. A
simple way to define SECRETVAR is some marco like
#define SECRETVAR
But the issue is that it is a constant so an attacker can know. A better strategy is to make
it a variable and assign a random number to it at run time.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
