X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_graph_helper.c;h=456ab95b022fb05f54f09c0e0f5b2f1dd8f8eadd;hb=2f2e580d4570417d95b8a3b4ef09a3c1e79808bb;hp=b5be2ef9123eae984e9c78a31cd737e0a373bdf2;hpb=219fd9224e3117dcf59df8818d4e9e3eab26022a;p=rrdtool.git diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index b5be2ef..456ab95 100644 --- a/src/rrd_graph_helper.c +++ b/src/rrd_graph_helper.c @@ -862,6 +862,10 @@ int rrd_parse_make_vname( rrd_set_error("Cannot parse vname from '%s'", line); return 1; } + if (line[*eaten+i] == '\0') { + rrd_set_error("String ends after the = sign on '%s'", line); + return 1; + } dprintf("- found candidate '%s'\n", tmpstr); if ((gdp->vidx = find_var(im, tmpstr)) >= 0) {