* grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if

entry->len = 0.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-01-03 21:27:00 +01:00
parent 54ce53cadc
commit dadddb7665
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
entry->len = 0.
2013-01-03 Colin Watson <cjwatson@ubuntu.com>
* docs/grub.texi (Invoking grub-mkrelpath): New section.

View file

@ -295,7 +295,7 @@ grub_iso9660_susp_iterate (grub_fshelp_node_t node, grub_off_t off,
if (load_sua ())
return grub_errno;
for (; (char *) entry < (char *) sua + sua_size - 1;
for (; (char *) entry < (char *) sua + sua_size - 1 && entry->len > 0;
entry = (struct grub_iso9660_susp_entry *)
((char *) entry + entry->len))
{