diff options
Diffstat (limited to 'xdelta3/xdelta3.c')
-rw-r--r-- | xdelta3/xdelta3.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xdelta3/xdelta3.c b/xdelta3/xdelta3.c index 3a0c6e8..d08266e 100644 --- a/xdelta3/xdelta3.c +++ b/xdelta3/xdelta3.c | |||
@@ -3817,7 +3817,13 @@ xd3_encode_input (xd3_stream *stream) | |||
3817 | * or else it can get stuck in a match-backward | 3817 | * or else it can get stuck in a match-backward |
3818 | * (getsrcblk) then match-forward (getsrcblk), | 3818 | * (getsrcblk) then match-forward (getsrcblk), |
3819 | * find insufficient match length, then repeat | 3819 | * find insufficient match length, then repeat |
3820 | * exactly the same search. */ | 3820 | * exactly the same search. |
3821 | * | ||
3822 | * TODO: would be better to solve this be remebering | ||
3823 | * the previous address and avoiding long matches | ||
3824 | * in xd3_string_match(), since there could still be | ||
3825 | * a small match at ths position. Write a test | ||
3826 | * that reproduces the above scenario. */ | ||
3821 | if (stream->match_fwd != 0) { | 3827 | if (stream->match_fwd != 0) { |
3822 | stream->input_position += stream->match_fwd; | 3828 | stream->input_position += stream->match_fwd; |
3823 | } else { | 3829 | } else { |