2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>

* kern/file.c (grub_file_seek): Seeking to an offset equal to a
        file size must be permitted.

        * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
        between %ah and %al.
This commit is contained in:
okuji 2005-10-15 17:28:36 +00:00
parent 5c177389e2
commit 219ad4262c
3 changed files with 11 additions and 3 deletions

View file

@ -146,7 +146,7 @@ grub_file_seek (grub_file_t file, grub_ssize_t offset)
{
grub_ssize_t old;
if (offset < 0 || offset >= file->size)
if (offset < 0 || offset > file->size)
{
grub_error (GRUB_ERR_OUT_OF_RANGE,
"attempt to seek outside of the file");