index 53da69553212acbf23553dcdcc53e078a94e46fb..ca457ff0d9ead14732e0796673a5bee9cc4cb6e2 100644 (file)
/****************************************************************************
- * RRDtool 1.2.26 Copyright by Tobi Oetiker, 1997-2007
+ * RRDtool 1.2.30 Copyright by Tobi Oetiker, 1997-2009
****************************************************************************
* rrd_graph_helper.c commandline parser functions
* this code initially written by Alex van den Bogaerdt
@@ -606,6 +606,10 @@ rrd_parse_make_vname(const char *const line, unsigned int *const eaten, graph_de
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) {