Bug fix: Appended partitions of size >= 4 GiB led to abort with error message "FATAL : ISO overwrite". Thanks to Sven Haardiek.

This commit is contained in:
Thomas Schmitt 2017-01-24 10:43:10 +01:00
parent 215280448f
commit 5c1c5cd964
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ int iso_compute_append_partitions(Ecma119Image *t, int flag)
} }
t->appended_part_size[i] = size; t->appended_part_size[i] = size;
pos += add_pos + size; pos += add_pos + size;
t->total_size += (add_pos + size) * 2048; t->total_size += (((off_t) add_pos) + size) * 2048;
if (flag & 1) if (flag & 1)
t->curblock = pos; t->curblock = pos;
} }