2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
2009-10-25 Vasily Averin <vvs@parallels.com> * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when `dirent.direntlen == 0'.
This commit is contained in:
parent
b240e30c47
commit
508d42ec11
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
|
||||
2009-10-25 Vasily Averin <vvs@parallels.com>
|
||||
|
||||
* fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
|
||||
`dirent.direntlen == 0'.
|
||||
|
||||
2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
|
||||
|
||||
* fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
|
||||
|
|
|
@ -649,6 +649,9 @@ grub_ext2_iterate_dir (grub_fshelp_node_t dir,
|
|||
if (grub_errno)
|
||||
return 0;
|
||||
|
||||
if (dirent.direntlen == 0)
|
||||
return 0;
|
||||
|
||||
if (dirent.namelen != 0)
|
||||
{
|
||||
char filename[dirent.namelen + 1];
|
||||
|
|
Loading…
Reference in a new issue