]> git.proxmox.com Git - grub2.git/commit - ChangeLog-2015
2008-02-06 Christian Franke <franke@computer.org>
authorbean <bean@localhost>
Wed, 6 Feb 2008 19:57:40 +0000 (19:57 +0000)
committerbean <bean@localhost>
Wed, 6 Feb 2008 19:57:40 +0000 (19:57 +0000)
commitb0dfd29ab2b04302ba1dc580ad29df1bb732a7c6
tree68b7738d68be2474ee21b3960a5657e653408c97
parentc32865bfcfc3a0b78cfd8bd95846868c306817e5
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.
ChangeLog
fs/cpio.c