I have written simple function in C,
void GetInput()
{
char buffer[8];
gets(buffer);
puts(buffer);
}
When I disassemble it in g
Two things:
Regarding your other question that you should have asked separately, xor %gs:0x14,%eax
is clearly part of a stack protection mechanism, enabled by default. If you are using GCC, turn it off with -fno-stack-protector
.