From 0846a98bc1e2985b28397c3086f750b69dfc83b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Mert=20Y=C4=B1ld=C4=B1ran?= Date: Tue, 1 Feb 2022 13:24:56 +0300 Subject: [PATCH] Fix the Redis dissector (#739) Co-authored-by: Igor Gov --- tap/extensions/redis/read.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tap/extensions/redis/read.go b/tap/extensions/redis/read.go index 076f0667e..4201fc475 100644 --- a/tap/extensions/redis/read.go +++ b/tap/extensions/redis/read.go @@ -117,12 +117,6 @@ func (r *RedisInputStream) readLineBytes() ([]byte, error) { line := make([]byte, N) j := 0 for i := r.count; i <= N; i++ { - if i >= len(buf) { - return nil, errors.New("Redis buffer index mismatch.") - } - if i >= len(line) { - return nil, errors.New("Redis line index mismatch.") - } line[j] = buf[i] j++ }