Fixed memory error when overwriting boot image of loaded ISO. Caused by rev5386

This commit is contained in:
Thomas Schmitt 2015-02-04 10:38:12 +00:00
parent 4da24f1cae
commit 67c6efc245
2 changed files with 2 additions and 2 deletions

View File

@ -1060,13 +1060,13 @@ int Xorriso_write_session(struct XorrisO *xorriso, int flag)
/* Activate, adjust or discard boot image */
if(image!=NULL) {
is_bootable= iso_image_get_boot_image(image, NULL, NULL, &bootcat_node);
if(xorriso->boot_image_bin_path[0]) {
ret= Xorriso_attach_boot_image(xorriso, xorriso->boot_count == 0);
if(ret <= 0)
goto ex;
freshly_bootable= 1;
}
is_bootable= iso_image_get_boot_image(image, NULL, NULL, &bootcat_node);
}
if(image!=NULL && !(flag&1)) {
if(xorriso->boot_count > 0 || freshly_bootable) {

View File

@ -1 +1 @@
#define Xorriso_timestamP "2014.12.29.142036"
#define Xorriso_timestamP "2015.02.04.113526"