summaryrefslogtreecommitdiff
path: root/match.c
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2023-04-22 08:49:48 -0700
committerWayne Davison <wayne@opencoder.net>2023-04-22 08:49:50 -0700
commit0f599d3641bd197ff01f5182fad33169aa46a055 (patch)
tree07a3aa2a00a27242267f37d0c2cfd5506a0a33b0 /match.c
parentc3d3b49d722439f18be24a0414aa49b4b035841f (diff)
downloadrsync-0f599d3641bd197ff01f5182fad33169aa46a055.tar.gz
Fix overflow of sum2 buffer for sha1 rolling checksums.
Fixed #353.
Diffstat (limited to 'match.c')
-rw-r--r--match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/match.c b/match.c
index 6243994c..192b154a 100644
--- a/match.c
+++ b/match.c
@@ -142,7 +142,7 @@ static void hash_search(int f,struct sum_struct *s,
{
OFF_T offset, aligned_offset, end;
int32 k, want_i, aligned_i, backup;
- char sum2[SUM_LENGTH];
+ char sum2[MAX_DIGEST_LEN];
uint32 s1, s2, sum;
int more;
schar *map;