xdelta-sharp icon indicating copy to clipboard operation
xdelta-sharp copied to clipboard

Patching files > 4GiB

Open Rast1234 opened this issue 2 years ago • 3 comments
trafficstars

I was trying to patch a large file (4 448 220 211 bytes) with not so large xdelta, and it failed. Worth mentioning in limitations list i guess. By the way, any thoughts if it's difficult to support large files?

System.FormatException: decoder file offset overflow at
PleOps.XdeltaSharp.Decoder.WindowReader.CheckReadOverflow() at
PleOps.XdeltaSharp.Decoder.Decoder.Run() at
...

Rast1234 avatar Jun 15 '23 20:06 Rast1234

Good point. This is currently a limitation. The library does not support integers larger than 32-bits (4 GB) in the VCDIFF format.

I will update the README to point to this limitation until it's implemented.

pleonex avatar Sep 14 '23 05:09 pleonex

is it still limited by 4GB of size ? I would really need it, so is there any plans to support 4gb> files pls ?

michalss avatar Mar 11 '24 19:03 michalss

As it's stated in the README, the project doesn't support patches for files larger than 4 GB yet. At the moment I don't have much free time to work on it.

A workaround would be to split the file in blocks of 4 GB, create a patch for each of them and join them after patching later.

pleonex avatar Mar 12 '24 08:03 pleonex