From 905f4f898f7b657993d0a3529239e14405ca9df3 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 28 Sep 2015 20:39:12 +0200 Subject: [PATCH] Fixed SIGSEGV while image import. Introduced by rev 1216. --- libisofs/fs_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libisofs/fs_image.c b/libisofs/fs_image.c index 42e4f9f..b62ab0e 100644 --- a/libisofs/fs_image.c +++ b/libisofs/fs_image.c @@ -1636,7 +1636,7 @@ int iso_file_source_new_ifs(IsoImageFilesystem *fs, IsoFileSource *parent, "Invalid NM entry"); continue; } - if (strlen(name) > 4095) { + if (name != NULL) if (strlen(name) > 4095) { /* Preliminarily truncate totally oversized name */ ret = iso_rr_msg_submit(fsdata, 3, ISO_WRONG_RR_WARN, ret, "Totally oversized NM list");