From 5c1c5cd9640f1ba074e9a32242d0273ba4f72731 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 24 Jan 2017 10:43:10 +0100 Subject: [PATCH] Bug fix: Appended partitions of size >= 4 GiB led to abort with error message "FATAL : ISO overwrite". Thanks to Sven Haardiek. --- libisofs/system_area.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libisofs/system_area.c b/libisofs/system_area.c index b36009b..8030048 100644 --- a/libisofs/system_area.c +++ b/libisofs/system_area.c @@ -184,7 +184,7 @@ int iso_compute_append_partitions(Ecma119Image *t, int flag) } t->appended_part_size[i] = size; pos += add_pos + size; - t->total_size += (add_pos + size) * 2048; + t->total_size += (((off_t) add_pos) + size) * 2048; if (flag & 1) t->curblock = pos; }