Fossil Forum

fossil uv bug with large files
Login

fossil uv bug with large files

fossil uv bug with large files

(1) By Alfred M. Szmidt (ams) on 2023-06-22 10:03:17 [source]

The size of files seems to be stored as a 32 bit number.

Was adding a 3_200_500_071 byte file. "fossil uv list" shows it as -1094467225 bytes, and exporting it back out doesn't work (it is truncated to 241086 bytes).

Stupid and silly thing to do (just don't ask), but Fossil should probably just refuse such stupidity from people like me. :-)

(2) By Stephan Beal (stephan) on 2023-06-22 10:16:31 in reply to 1 [link] [source]

Was adding a 3_200_500_071 byte file.

Yeah... don't do that :).

Fossil's internal blob class is limited to just shy of 2gb. That it let you import (sort of) that in the first place is definitely a bug and will be looked into shortly. Thank you for the report!

(3.1) By Stephan Beal (stephan) on 2023-06-22 10:50:02 edited from 3.0 in reply to 2 [link] [source]

That it let you import (sort of) that in the first place is definitely a bug and will be looked into shortly.

That's now fixed in src:6efd4194.

Edit: "fixed" meaning that it will fail loudly if too-large of a file is added, rather than the max size being extended (which cannot be done without much larger changes in the blob infrastructure).

(4) By Alfred M. Szmidt (ams) on 2023-06-26 10:18:23 in reply to 3.1 [link] [source]

Thank you!