From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] UBIFS: Change ubifsload to not read beyond the requested size
Date: Mon, 1 Nov 2010 16:47:43 +0100 [thread overview]
Message-ID: <201011011647.43795.sr@denx.de> (raw)
In-Reply-To: <AANLkTik4UcJGi7eR080P2Pnp-G3Xf2fyAz-XMysbvFDJ@mail.gmail.com>
Hi Ben,
On Friday 29 October 2010 16:01:18 Ben Gardiner wrote:
> On Fri, Oct 29, 2010 at 5:04 AM, Stefan Roese <sr@denx.de> wrote:
> > Until now ubifsload pads the destination with 0 up to a multiple of
> > UBIFS_BLOCK_SIZE (4KiB) while reading a file to memory. This patch
> > changes this behaviour to only read to the requested length. This
> > is either the file length or the length/size provided as parameter
> > to the ubifsload command.
> >
> > Signed-off-by: Stefan Roese <sr@denx.de>
> > ---
> > [...]
> > + /*
> > + * Reading last block? Make sure to not write
> > beyond + * the requested size.
> > + */
>
> s/write/read/
No. This refers to not writing beyond the requested size in the destination
buffer. So that nothing will be overwritten by this 4KiB padding. I'll change
this comment a bit to make this clearer in the next patch version.
> > [...]
> > + /* Read block-siez into temp buffer */
>
> s/siez/size/
Thanks for catching. Will change.
Cheers,
Stefan
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de
next prev parent reply other threads:[~2010-11-01 15:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-29 9:04 [U-Boot] [PATCH] UBIFS: Change ubifsload to not read beyond the requested size Stefan Roese
2010-10-29 14:01 ` Ben Gardiner
2010-11-01 15:47 ` Stefan Roese [this message]
2010-10-29 20:54 ` Wolfgang Denk
2010-11-01 13:06 ` Stefan Roese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201011011647.43795.sr@denx.de \
--to=sr@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.