OctopusDeploy / Octodiff

| Public | 100% C# implementation of remote delta compression based on the rsync algorithm
Other
24 stars 87 forks source link

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

Closed oldcrow54 closed 1 year ago

oldcrow54 commented 4 years ago

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.