Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patching files > 4GiB #13

Open
Rast1234 opened this issue Jun 15, 2023 · 3 comments
Open

Patching files > 4GiB #13

Rast1234 opened this issue Jun 15, 2023 · 3 comments

Comments

@Rast1234
Copy link

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
...
@pleonex
Copy link
Owner

pleonex commented Sep 14, 2023

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.

@michalss
Copy link

michalss commented Mar 11, 2024

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

@pleonex
Copy link
Owner

pleonex commented Mar 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants