This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: another bug in remote.c
- To: Quality Quorum <qqi at world dot std dot com>
- Subject: Re: another bug in remote.c
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sat, 11 Dec 1999 15:18:46 +1100
- CC: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Organization: Cygnus Solutions
- References: <Pine.SGI.3.95.991210221737.22433A-100000@world.std.com>
[cc set to gdb-patches]
Quality Quorum wrote:
>
> Hi,
>
> I got another bug. This time I do not know how to fix it.
> It is possible to get into following sequence of of events:
>
> gdb: $m4000ab70,c8#22 -- asks for 200 bytes of memory
> stub: $<400 chars>#XX -- stub responds correctly, packet
> length 404 bytes
> gdb: Remote packet too long -- gdb unhappy
>
> I suspect that PBUFSIZ should not be used to determine
> max_buf_size in remote_read_bytes(). It seems like there are
> more places where similar problem may occur.
Just a quick check. How up-to-date are your sources. Does the ChangeLog
contain entries from me where I drop a buffer from 400 to 399?
Andrew