Bug fix: iso_image_report_system_area() caused SIGSEGV by NULL if no valid

ISO 9660 image was loeaded. Thanks to OmegaPhil.
This commit is contained in:
Thomas Schmitt 2014-08-16 15:01:11 +02:00
parent a068a1349a
commit c47451d12b
1 changed files with 2 additions and 0 deletions

View File

@ -4798,6 +4798,8 @@ int iso_impsysa_report(IsoImage *image, struct iso_impsysa_result *target,
LIBISO_ALLOC_MEM(msg, char, ISO_MAX_SYSAREA_LINE_LENGTH);
if (sai == NULL)
{ret = 0; goto ex;}
if (!sai->is_not_zero)
{ret = 0; goto ex;}
sao = sai->system_area_options;