[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-xorriso] Unable to attach big partition
From: |
Thomas Schmitt |
Subject: |
Re: [Bug-xorriso] Unable to attach big partition |
Date: |
Mon, 23 Jan 2017 15:26:09 +0100 |
Hi,
> xorriso -indev master.iso -outdev - -append_partition 3 Linux extra.img
I don't think i ever tested this combination ...
The run obviously had a misprediction of the ISO result size:
> xorriso : UPDATE : Writing: 1224032s 84.9% fifo 1% buf 50%
The planned size of the ISO was only 1224032/84.9*100/512/1024 = 2.75 GiB.
The same happens for me with this more simple situation
xorriso -outdev stdio:/dev/null -append_partition 3 Linux image \
-add some_file --
The message "ISO overwrite" is emitted in libisofs/ecma119.c when the
image production output exceeds the predicted size.
In my own experiments a 7.4 GiB partition causes 3.4 GiB of predicted image
size. This indicates that there is some 32 bit byte counter rollover.
valgrind shows no complaints. So memory corruption is not to expect.
I will now go hunting for uint32_t where off_t should be used.
Have a nice day :)
Thomas