Commit e2090b49 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

This cannot overflow the buffer, but Coverity can't guess that.

parent c2b06248
......@@ -822,12 +822,10 @@ do_stat_dump_cb(void *priv, const struct VSC_point * const pt)
u = *(const volatile uint64_t*)pt->ptr;
strcpy(buf, pt->section->type);
if (pt->section->ident[0] != '\0') {
strcat(buf, ".");
strcat(buf, pt->section->ident);
}
strcat(buf, ".");
strcat(buf, pt->desc->name);
if (pt->section->ident[0] != '\0')
bprintf(buf, ".%s.%s", pt->section->ident, pt->desc->name);
else
bprintf(buf, ".%s", pt->desc->name);
if (strcmp(dp->arg, "*")) {
if (fnmatch(dp->arg, buf, 0))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment