Monthly Archives: February 2016

Getting the same address of the local variable in GDB? Think about the address randomization

When playing with GDB this afternoon, I noticed a “strange” behavior. Even with simple code like #include <stdio.h> int main(void) { int x = 1; printf(“x=%d\t address: %p\n”, x, &x); return 0; } In GDB, we always get the same … Continue reading

Posted in 技术 Tech | Leave a comment