Hi,
I have written some code that generates a buffer overflow on the stack in an application I use. Basically I input a large amount of data into a buffer which uses the flawed strcpy function. This is course causes the application to crash, what I am wondering is what are actually causing the below error messages. I have the \GS switch turned on for overflow protection and notification. Are the errors due to this switch being on or is it just that I am probably the stack frame completely. The application crashes when the strcpy command is called. There are loads of errors of the type below that come up in the debug window. I am overflowing with "a"'s so thats where the 0x61616161 comes from.
Any help would be greatly appreciated,
Regards,
John
First-chance exception at 0x61616161 in xercesProj2.exe: 0xC0000005: Access violation reading location 0x61616161.
First-chance exception at 0x61616161 in xercesProj2.exe: 0xC0000005: Access violation reading location 0x61616161.
First-chance exception at 0x61616161 in xercesProj2.exe: 0xC0000005: Access violation reading location 0x61616161.
First-chance exception at 0x7c90eddc in xercesProj2.exe: 0xC0000005: Access violation writing location 0x00030ff8.
Unhandled exception at 0x7c90eddc in xercesProj2.exe: 0xC0000005: Access violation writing location 0x00030ff8.
First-chance exception at 0x7c90eddc in xercesProj2.exe: 0xC0000005: Access violation writing location 0x00030ff8.
I have written some code that generates a buffer overflow on the stack in an application I use. Basically I input a large amount of data into a buffer which uses the flawed strcpy function. This is course causes the application to crash, what I am wondering is what are actually causing the below error messages. I have the \GS switch turned on for overflow protection and notification. Are the errors due to this switch being on or is it just that I am probably the stack frame completely. The application crashes when the strcpy command is called. There are loads of errors of the type below that come up in the debug window. I am overflowing with "a"'s so thats where the 0x61616161 comes from.
Any help would be greatly appreciated,
Regards,
John
First-chance exception at 0x61616161 in xercesProj2.exe: 0xC0000005: Access violation reading location 0x61616161.
First-chance exception at 0x61616161 in xercesProj2.exe: 0xC0000005: Access violation reading location 0x61616161.
First-chance exception at 0x61616161 in xercesProj2.exe: 0xC0000005: Access violation reading location 0x61616161.
First-chance exception at 0x7c90eddc in xercesProj2.exe: 0xC0000005: Access violation writing location 0x00030ff8.
Unhandled exception at 0x7c90eddc in xercesProj2.exe: 0xC0000005: Access violation writing location 0x00030ff8.
First-chance exception at 0x7c90eddc in xercesProj2.exe: 0xC0000005: Access violation writing location 0x00030ff8.