From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 9/9] ubifs: Add '\0' to the end of the realpath
Date: Fri, 24 Apr 2009 16:13:15 +0200 [thread overview]
Message-ID: <200904241613.15874.sr@denx.de> (raw)
In-Reply-To: <1240573815-11168-2-git-send-email-ricardo.ribalda@uam.es>
On Friday 24 April 2009, Ricardo Ribalda Delgado wrote:
> ---
First of all your Signed-off-by line is missing. In your other patch as well.
And please add a description of the problem that's fixed with this patch. I've
used UBIFS on some boards now and have not seen any problems. Please give an
example of what's broken in the current code and fixed with your patch.
> fs/ubifs/ubifs.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c
> index 0708d90..4dc315e 100644
> --- a/fs/ubifs/ubifs.c
> +++ b/fs/ubifs/ubifs.c
> @@ -646,6 +646,8 @@ int ubifs_load(char *filename, u32 addr, u32 size)
> ui = ubifs_inode(inode);
> if (((inode->i_mode & S_IFMT) == S_IFLNK) && ui->data_len) {
> memcpy(link_name, ui->data, ui->data_len);
> + link_name[ui->data_len]='\0';
> + memcpy(link_name, ui->data, ui->data_len);
Hmmm. This looks strange. Didn't you want to remove the first memcpy()?
Thanks.
Best regards,
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:[~2009-04-24 14:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-24 11:50 [U-Boot] [PATCH 1/9] ubifs: BUG: Blocks commpressed with zlib Ricardo Ribalda Delgado
2009-04-24 11:50 ` [U-Boot] [PATCH 9/9] ubifs: Add '\0' to the end of the realpath Ricardo Ribalda Delgado
2009-04-24 14:13 ` Stefan Roese [this message]
2009-04-24 14:17 ` [U-Boot] [PATCH 1/9] ubifs: BUG: Blocks commpressed with zlib 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=200904241613.15874.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox