From: Christian Franke <Christian.Franke@t-online.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Fix crash on open of nonexisting tar/cpio file, fix cpio trailer detection
Date: Wed, 06 Feb 2008 18:42:18 +0100 [thread overview]
Message-ID: <47A9F17A.7090209@t-online.de> (raw)
In-Reply-To: <20080206002439.GC2704@thorin>
Robert Millan wrote:
>
>> 2008-02-05 Christian Franke <franke@computer.org>
>>
>> * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
>> and (*ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on last
>>
>
> I would suggest "(and set *ofs = 0)" here to make it clearer.
>
>
OK.
2008-02-06 Christian Franke <franke@computer.org>
* fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
(and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
last block of a cpio or tar stream.
Check for "TRAILER!!!" instead of any empty data
block to detect last block of a cpio stream.
(grub_cpio_dir): Fix constness of variable np.
(grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
cpio or tar trailer is detected. This fixes a crash
on open of a non existing file.
next prev parent reply other threads:[~2008-02-06 17:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-05 23:02 [PATCH] Fix crash on open of nonexisting tar/cpio file, fix cpio trailer detection Christian Franke
2008-02-06 0:24 ` Robert Millan
2008-02-06 8:07 ` Christian Franke
2008-02-06 17:42 ` Christian Franke [this message]
2008-02-06 7:29 ` Bean
2008-02-06 19:18 ` Robert Millan
2008-02-06 19:56 ` Bean
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=47A9F17A.7090209@t-online.de \
--to=christian.franke@t-online.de \
--cc=grub-devel@gnu.org \
/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.