2 added 30 characters in body; edited title
source | link

Why do registers registers get overwritten upon overflow?

I know that upon a overflow, the stack isgets partially overwritten, but I do not understand why do registers are changed, such as EIP /or RIP get changed in this process.

How come some registers are modified upon overflow by such an attack?

Why do registers registers get overwritten upon overflow?

I know that upon overflow, the stack is overwritten, but I do not understand why do registers are changed, such as EIP / RIP.

How come some registers are modified upon overflow ?

Why do registers get overwritten upon overflow?

I know that upon a overflow, the stack gets partially overwritten, but I do not understand why registers such as EIP or RIP get changed in this process.

How come some registers are modified by such an attack?

1
source | link

Why do registers registers get overwritten upon overflow?

I know that upon overflow, the stack is overwritten, but I do not understand why do registers are changed, such as EIP / RIP.

How come some registers are modified upon overflow ?