From c47451d12ba255d5967b851618713c009f102bbe Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 16 Aug 2014 15:01:11 +0200 Subject: [PATCH] Bug fix: iso_image_report_system_area() caused SIGSEGV by NULL if no valid ISO 9660 image was loeaded. Thanks to OmegaPhil. --- libisofs/fs_image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libisofs/fs_image.c b/libisofs/fs_image.c index 03ca60b..5984508 100644 --- a/libisofs/fs_image.c +++ b/libisofs/fs_image.c @@ -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;