Question: 2. The following code is similar to the code shown in Practice problem 3.48 of page 288 #include #include #include #include int len(char *s) return

 2. The following code is similar to the code shown in

2. The following code is similar to the code shown in Practice problem 3.48 of page 288 #include #include #include #include int len(char *s) return strlen (S) void lptoa (char *s, long *p) f long val -*p; sprintf ( s , " ild" , val ) ; long longlen (long x) long vi char buf[8; lptoa (buf, &v) return len(buf); int main() I longlen (TMAX-1); Compile the code with and without stack protector Fill the table with appropriate values. Leave the entries empty if not applicable no stack protectorstack protector cc fla ssembly for allocating stack tack size in decimal ssembly for freeing stack ssembly for allocating stack tack size in decimal ssembly for freeing char *s" address relative to rsp after entering lptoa long *p" address relative to rsp after entering lpt "val" address relative to rsp after entering lptoa ssembly for allocating stack tack size in decimal ssembly for freeing stack "x" address relative to rsp after entering longlen "v" address relative to rsp after entering longlen en stack ptoa onglen "buf" address relative to rsp after entering longlen anary register name anary address relative to rsp anary value ssembly for erasing canary value ssembly for canary cross check 2. The following code is similar to the code shown in Practice problem 3.48 of page 288 #include #include #include #include int len(char *s) return strlen (S) void lptoa (char *s, long *p) f long val -*p; sprintf ( s , " ild" , val ) ; long longlen (long x) long vi char buf[8; lptoa (buf, &v) return len(buf); int main() I longlen (TMAX-1); Compile the code with and without stack protector Fill the table with appropriate values. Leave the entries empty if not applicable no stack protectorstack protector cc fla ssembly for allocating stack tack size in decimal ssembly for freeing stack ssembly for allocating stack tack size in decimal ssembly for freeing char *s" address relative to rsp after entering lptoa long *p" address relative to rsp after entering lpt "val" address relative to rsp after entering lptoa ssembly for allocating stack tack size in decimal ssembly for freeing stack "x" address relative to rsp after entering longlen "v" address relative to rsp after entering longlen en stack ptoa onglen "buf" address relative to rsp after entering longlen anary register name anary address relative to rsp anary value ssembly for erasing canary value ssembly for canary cross check

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 Databases Questions!