Tue, 20 Feb 2007 22:20:16 +0100 don't return uninitialized memory from bdiff.blocks()
Erling Ellingsen <erlingalf@gmail.com> [Tue, 20 Feb 2007 22:20:16 +0100] rev 4131
don't return uninitialized memory from bdiff.blocks() bdiff.blocks() returns a dummy match at the end of both files; the length of that chunk is never set, so it will sometimes contain random heap garbage. There are apparently workarounds for this elsewhere: # bdiff sometimes gives huge matches past eof, this check eats them,
(0) -3000 -1000 -300 -100 -30 -10 -1 +1 +10 +30 +100 +300 +1000 +3000 +10000 +30000 tip