Re: why dosent buffer gets overflowed
- From: "Bartc" <bc@xxxxxxxxxx>
- Date: Fri, 22 Aug 2008 13:58:15 GMT
raashid bhatt wrote:
On Aug 22, 3:31 am, James Kuyper <jameskuy...@xxxxxxxxxxx> wrote:raashid bhatt wrote:On Aug 21, 10:45 pm, Richard Heathfield <r...@xxxxxxxxxxxxxxx>
wrote:
raashid bhatt said:
#include <stdio.h>Subject line: "why dosent buffer gets overflowed"
#include <string.h>
#include <stdlib.h>
void func(char *p)
{
char i[5];
strcpy(i, p);
...What makes you think the buffer isn't being overflowed?i am using a debugger to track EIP but its this program exits
nornally
So, why does that make you think that the buffer isn't being
overflowed?
i mean if buffer gets overflowed then EIP should contains my A's and
EIP is a register, it's unlikely to be full of As (or 0x41s).
as per as definition of EIP (pointer to code) which contains A's
should cause the program to crash
Since you have a debugger you might like to investigate exactly where those
extra 5 As end up, if anywhere, and what that memory would otherwise have
been used for. Then you can find out why your program doesn't crash.
--
Bartc
.
- References:
- Re: why dosent buffer gets overflowed
- From: Richard Heathfield
- Re: why dosent buffer gets overflowed
- From: James Kuyper
- Re: why dosent buffer gets overflowed
- Prev by Date: Re: why dosent buffer gets overflowed
- Next by Date: Re: Ah've got them Function Pointer blues
- Previous by thread: Re: why dosent buffer gets overflowed
- Next by thread: Re: why dosent buffer gets overflowed
- Index(es):
Relevant Pages
|