This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: fix remote-fileio breakage
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 18 Jul 2006 16:47:52 -0400
- Subject: Re: fix remote-fileio breakage
- References: <44BC9088.4070700@codesourcery.com>
On Tue, Jul 18, 2006 at 08:40:56AM +0100, Nathan Sidwell wrote:
> It appears that recent changes to remote protocol handling have exposed a
> latent bug in remote fileio. Two of the remote fileio calls start reading
> target memory before completely processing the fileio response packet.
> Reading remote memory overwrites that buffer.
Yeah, you're right.
> 2006-07-18 Nathan Sidwell <nathan@codesourcery.com>
>
> * remote-fileio.c (remote_fileio_func_rename): Reorder to process
> input buffer before reading memory.
> (remote_fileio_func_stat): Likewise.
OK, thanks.
--
Daniel Jacobowitz
CodeSourcery