X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Frrd_graph_helper.c;h=456ab95b022fb05f54f09c0e0f5b2f1dd8f8eadd;hb=743423a9a83de34275042a970ad098305c2d8966;hp=b5be2ef9123eae984e9c78a31cd737e0a373bdf2;hpb=b8f0de630a1b17ff436e152d7d3e64f25cd52ae3;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) {