Browse Source

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

release-1.5.4.branch
Thomas Schmitt 5 years ago
parent
commit
2be47f9af8
  1. 2
      ChangeLog
  2. 8
      libisofs/ecma119_tree.c

2
ChangeLog

@ -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.

8
libisofs/ecma119_tree.c

@ -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) {

Loading…
Cancel
Save