Code

The patch fixs rrdtools behaviour when presented with trunkated rrd files.
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 3 Oct 2008 22:53:28 +0000 (22:53 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 3 Oct 2008 22:53:28 +0000 (22:53 +0000)
commitfc07e0c60bb8cc7f8908b64e81c1624ab2305654
tree3ea1a7541ff8f845f64188b54f62b30b667818bb
parent62fa6a91f2c67c1452473626a9c875799cbef53b
The patch fixs rrdtools behaviour when presented with trunkated rrd files.

  * Make sure that we do not extend past the end of the
    file when reading the header.

  * Makes sure that the data portion of the file is large enough, based on
    the ds_cnt and the total number of RRA rows

-- kevin brintnall

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1570 a5681a0c-68f1-0310-ab6d-d61299d08faa
program/src/rrd_open.c