[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Possible memory access overrun?
- From: "Terry Bayne" <gnome@...>
- Date: Mon, 23 Jul 2001 16:21:50 -0500
Roberto,
It could be a bug in sprintf, and yes, it seems to be an odd coincidence that trys to access 99 bytes and the format is "%.99s". Thought I would put the info
out there.... but for my part I am ignoring this CodeGuard report because everything seems to work ok.
Terry
On Mon, 23 Jul 2001 16:46:43 -0300, Roberto Ierusalimschy wrote:
>
>May this be a bug in `sprintf'? Or is it just a coincidence that it trys
>to access 99 bytes when the format is "%.99s"?
>
>The debugger itself prints the string with only 48 bytes:
>
> strlen("lwrite("This is a test"); I wonder where we are") == 47
>
>The block size seems to be OK: 20 bytes of header (5 integers/pointers) +
>48 bytes for the string == 68 bytes.
>
>-- Roberto
>