Categories
Archives
February 2016 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Meta
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