This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: redboot http client fix
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Jani Monoses <jani at iv dot ro>
- Cc: eCos patches <ecos-patches at ecos dot sourceware dot org>
- Date: Fri, 13 Aug 2004 06:15:30 -0600
- Subject: Re: redboot http client fix
- Organization: MLB Associates
- References: <20040813151315.07157844.jani@iv.ro>
On Fri, 2004-08-13 at 06:13, Jani Monoses wrote:
> Hello
>
> if the HTTP response header is not immediately followed by the file contents
> (read in the same buffer by redboot) so the CRLF CRLF ending is the last thing
> in the buffer, those 4 bytes are skipped and are instead read as the file
> sinature instead of .ELF.
> So the check should be extended to work even if there are exactly 4 bytes.
> It does not appear with 'normal' webservers, however I used a script to talk
> to redboot and it triggered this behaviour many times.
>
> I'll commit if it's approved.
Looks safe enough - go ahead. Be sure and explain why in the ChangeLog
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates