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

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

No files matched your search

+5
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.
+1 -1
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))
{