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 __SECRET_VAR in the macros. A
simple way to define __SECRET_VAR is some marco like
#define __SECRET_VAR 11223344
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!