Bug fix: SIGSEGV by NULL when a data file was larger than ISO level allows.

This commit is contained in:
Thomas Schmitt 2016-09-12 17:58:13 +02:00
parent bf5678c6d4
commit 2be47f9af8
2 changed files with 6 additions and 4 deletions

View File

@ -1,8 +1,10 @@
bzr branch lp:libisofs/for-libisoburn (to become libisofs-1.4.6.tar.gz)
===============================================================================
* Bug fix: SIGSEGV by NULL when a data file was larger than ISO level allows.
* New API calls iso_generate_gpt_guid() and +iso_write_opts_set_gpt_guid().
libisofs-1.4.4.tar.gz Fri Jul 01 2016
===============================================================================
* Bug fix: HFS+ production could cause MBR partition of type 0xEE without GPT.

View File

@ -241,11 +241,11 @@ int create_file_src(Ecma119Image *img, IsoFile *iso, IsoFileSrc **src)
size = iso_stream_get_size(iso->stream);
if (size > (off_t)MAX_ISO_FILE_SECTION_SIZE && img->opts->iso_level != 3) {
char *ipath = iso_tree_get_node_path(ISO_NODE(iso));
ret = iso_msg_submit(img->image->id, ISO_FILE_TOO_BIG, 0,
"File \"%s\" can't be added to image because "
"is greater than 4GB", ipath);
iso_msg_submit(img->image->id, ISO_FILE_TOO_BIG, 0,
"File \"%s\" cannot be added to image because "
"its size is 4 GiB or larger", ipath);
free(ipath);
return ret;
return ISO_FILE_TOO_BIG;
}
ret = iso_file_src_create(img, iso, src);
if (ret < 0) {