sergey-raevskiy/librsync-csharp

GetIntLen() is wrong for integers larger than 3 bytes

Closed this issue · 1 comments

In DeltaEmitter::Literal() line #20:
else if (i <= 0xffffff)
should be:
else if (i <= 0xffffffff)
so GetIntLen() will return 4 until the integer is larger than four bytes (instead of larger than just three bytes).

Thanks for reporting! Fixed in 7246b12 (using the original librsync code).