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:
robertmh 2009-10-24 23:36:00 +00:00
parent b240e30c47
commit 508d42ec11
2 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -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];