Re: why dosent buffer gets overflowed
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Fri, 22 Aug 2008 13:43:20 +0000
raashid bhatt said:
On Aug 22, 3:31 am, James Kuyper <jameskuy...@xxxxxxxxxxx> wrote:<snip>
raashid bhatt wrote:
On Aug 21, 10:45 pm, Richard Heathfield <r...@xxxxxxxxxxxxxxx> wrote:
...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
as per as definition of EIP (pointer to code) which contains A's
should cause the program to crash
Wrong. If the buffer is overflowed, then the C Standard imposes NO
REQUIREMENTS on what should happen - that's what "undefined behaviour"
means. The "it should do this" behaviour you describe is one possibility,
but only one among infinitely many. The program is *not* required to
behave as you expect. What happens is outside the control of the C
language. Your implementation can do anything it likes.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.
- 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: Ah've got them Function Pointer blues
- Next by Date: Re: why dosent buffer gets overflowed
- Previous by thread: Re: why dosent buffer gets overflowed
- Next by thread: Re: why dosent buffer gets overflowed
- Index(es):
Relevant Pages
|