Commit 0e948031 authored by Andrew Tridgell's avatar Andrew Tridgell

the signed/unsigned change seems to have caused a logic bug on some

systems (only those without large file support perhaps?)

this fixes it
parent b695d088
......@@ -246,7 +246,8 @@ static void hash_search(int f,struct sum_struct *s,
match. The 3 reads are caused by the
running match, the checksum update and the
literal send. */
if (offset-last_match >= CHUNK_SIZE+s->n &&
if (offset > last_match &&
offset-last_match >= CHUNK_SIZE+s->n &&
(end-offset > CHUNK_SIZE)) {
matched(f,s,buf,offset - s->n, -2);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment