Skip to content

Commit

Permalink
Fix SEGV when 'group' not specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95858 committed Jun 1, 2024
1 parent e6815a4 commit 437ecf5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ldms/src/decomp/static/decomp_static.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,11 @@ decomp_static_config(ldmsd_strgp_t strgp, json_t *jcfg,
rc = handle_group(strgp, jgroup, cfg_row, row_no, reqc);
if (rc)
goto err_0;
} else if (cfg_row->op_present) {
THISLOG(reqc, EINVAL,
"%s: row: %d, The 'group' clause is required if "
"functional operators are in use.\n",
strgp->obj.name, row_no);
}

dcfg->row_count++;
Expand Down

0 comments on commit 437ecf5

Please sign in to comment.