This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fix remote-fileio breakage


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]