SnowflakePowered / vcdiff

Heavily optimized .NET Core vcdiff library
Apache License 2.0
31 stars 12 forks source link

Issue with large files (more than 2 Gb) #8

Open jumbo533 opened 11 months ago

jumbo533 commented 11 months ago

There is an issue in VcEncoder constructor. If source file size is more than int.MaxValue than it would be incorrect behavior in: _nativeAllocation = new NativeAllocation((int)source.Length);

chyyran commented 8 months ago

What would the fix involve here? just removing the cast to int?