Octodiff icon indicating copy to clipboard operation
Octodiff copied to clipboard

WriteDataCommand in BinaryDeltaWriter.cs crashes when file size exceeds 2GB

Open oldcrow54 opened this issue 5 years ago • 0 comments

Line 42 casts length as an int. When length is greater that 2GB the cast converts this to a negative value and causes an exception when the byte array is instantiated.

Removing the cast, resolves the issue.

oldcrow54 avatar Feb 13 '20 17:02 oldcrow54