Fixed SIGSEGV while image import. Introduced by rev 1216.

This commit is contained in:
Thomas Schmitt 2015-09-28 20:39:12 +02:00
parent b9ec876c40
commit 905f4f898f

View File

@ -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");