Re: understanding buffer overflows
3APA3A <[email protected]> Thu, 1 Nov 2007 15:39:11 +0300
| Newsgroups | gmane.comp.security.vulnerabilities |
|---|---|
| Organization | http://www.security.nnov.ru |
| Message-ID | <[email protected]> |
Dear [email protected], main() function may actually never return, depending on C compiler implementation. Try it with different function. --Wednesday, October 31, 2007, 5:36:22 PM, you wrote to [email protected]: shc> void main() shc> { shc> char buffer[10]; shc> char COPY[]="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..."; shc> strcpy((char *)buffer,(char *)COPY); shc> } shc> k, this works very well, i got a core dump and have startet shc> gdb. but in the output from "info all" was eip not overwritten -- ~/ZARAZA http://securityvulns.com/