Fixing an index out of bounds on binary files smaller than a full hash window
Dependencies
- [2]
TGA6QXGIInitial support for binary diffs (conflicts are not yet supported in the output) - [3]
LV34DUJYFormatting
Change contents
- replacement in libpijul/src/diff/bin.rs at line 46
let mut ad = RollingAdler32::from_buffer(&b[..window]);let mut ad = RollingAdler32::from_buffer(&b[..window.min(b.len())]);