MFC r276412:
Fix loader's ability to read the 10.1 release PowerPC ISOs. There appears to be some kind of problem with the version of makefs used for these disks. There may be a better way to handle this problem, so I've set the MFC timer for a fairly long time period.
This commit is contained in:
parent
b93020e9d5
commit
612ef79eb0
@ -151,9 +151,14 @@ susp_lookup_record(struct open_file *f, const char *identifier,
|
|||||||
return (NULL);
|
return (NULL);
|
||||||
p = susp_buffer + isonum_733(shc->offset);
|
p = susp_buffer + isonum_733(shc->offset);
|
||||||
end = p + isonum_733(shc->length);
|
end = p + isonum_733(shc->length);
|
||||||
} else
|
} else {
|
||||||
/* Ignore this record and skip to the next. */
|
/* Ignore this record and skip to the next. */
|
||||||
p += isonum_711(sh->length);
|
p += isonum_711(sh->length);
|
||||||
|
|
||||||
|
/* Avoid infinite loops with corrupted file systems */
|
||||||
|
if (isonum_711(sh->length) == 0)
|
||||||
|
return (NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user