Question: Consider the assembly code below: foo: pushq %rbs subq $32, %rsp movl $0x18, 28 (srsp) leaq 16 (%rsp), %rdi call gets // rest of foo

 Consider the assembly code below: foo: pushq %rbs subq $32, %rsp

Consider the assembly code below: foo: pushq %rbs subq $32, %rsp movl $0x18, 28 (srsp) leaq 16 (%rsp), %rdi call gets // rest of foo addq $32, %rsp popa %rbx ret Immediately before the call to gets ,how many bytes away from orsp is the return address? Answer in decimal: What is the address of the buffer sent to gets )

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!