* grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
entry->len = 0.
This commit is contained in:
parent
54ce53cadc
commit
dadddb7665
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
2013-01-03 Colin Watson <cjwatson@ubuntu.com>
|
||||||
|
|
||||||
* docs/grub.texi (Invoking grub-mkrelpath): New section.
|
* docs/grub.texi (Invoking grub-mkrelpath): New section.
|
||||||
|
|
|
@ -295,7 +295,7 @@ grub_iso9660_susp_iterate (grub_fshelp_node_t node, grub_off_t off,
|
||||||
if (load_sua ())
|
if (load_sua ())
|
||||||
return grub_errno;
|
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 *)
|
entry = (struct grub_iso9660_susp_entry *)
|
||||||
((char *) entry + entry->len))
|
((char *) entry + entry->len))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue