Reverse Engineering Mentoring Lesson 004

Now we will modify example rem002.c to work with a global variable:

int a; main(int argc, char **argv) { 	a = 1; }

Try to understand this program with the tools I've pointed out, and include the disassembly here under. Maybe you remember that auto variables are not initialized in C and that global variables are initialized. Can you explain why now that you've looked at disassembled code for both examples?

--Didier Stevens 21:24, 20 February 2007 (UTC)