Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Thank you, I understand this, but the paper then claims that this code "Will dump memory from 0x08480110 until a NUL byte is reached." why is is that putting the memory address at the beginning of the format string allows you to print the contents at that address when you get to the %s? Commented Apr 15, 2011 at 6:25
  • @Vikas: the article was written in 2001, when life was simpler. Things have changed since then. It notes that the format string has to be on the stack, and then you can get at its address more easily. Modern compilers would not place the format string on the stack; it would most likely be in the text segment (program code; readonly memory). Commented Apr 15, 2011 at 6:33