Skip to content
This repository has been archived by the owner on Aug 30, 2019. It is now read-only.

quantizer: make sure there are enough elements in slice before accessing #421

Merged
merged 1 commit into from
May 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion quantizer/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func QuantizeRedis(span *model.Span) {

command := strings.ToUpper(args[0])

if redisCompoundCommandSet[command] {
if redisCompoundCommandSet[command] && len(args) > 1 {
if strings.HasSuffix(args[1], redisTruncationMark) {
truncated = true
continue
Expand Down