Skip to content

Commit

Permalink
decode_statsd: Plug an invaild length occurence
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Jul 23, 2024
1 parent 205abd4 commit 98c20b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cmt_decode_statsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ static int decode_labels(struct cmt *cmt,

while (label_kv != NULL) {
colon = strchr(label_kv, ':');
if (colon == NULL) {
break;
}
label_k = cfl_sds_create_len(label_kv, colon - label_kv);
if (label_k == NULL) {
free(value_index_list);
Expand Down

0 comments on commit 98c20b7

Please sign in to comment.