From 5dbc4ad5ef92f438c22bdf96c82eae4aa3b98cf6 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 14 May 2024 17:47:19 +0200 Subject: [PATCH] lib/streamaggr: properly return output key from getOutputKey The bug has been introduced in cc2647d212b4124466e23da69a7e19a76f1f67d5 (cherry picked from commit b617dc9c0b32f2833b57e38c1d9c3349fbc891f7) --- lib/streamaggr/streamaggr.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/streamaggr/streamaggr.go b/lib/streamaggr/streamaggr.go index f7110290e0..f93c785152 100644 --- a/lib/streamaggr/streamaggr.go +++ b/lib/streamaggr/streamaggr.go @@ -871,6 +871,7 @@ func getOutputKey(key string) string { if nSize <= 0 { logger.Panicf("BUG: cannot unmarshal inputKeyLen from uvarint") } + src = src[nSize:] outputKey := src[inputKeyLen:] return bytesutil.ToUnsafeString(outputKey) }