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)
commit6ef9ef38f5fbda2a07be81f1420b0826f26d173b
tree171cb1cea8f74a0c821ed2d4aeb388d5fb520011
parentc3ff532efcfa54cb526935e12bf84a87097afe7d
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/branches/1.3@1570 a5681a0c-68f1-0310-ab6d-d61299d08faa
program/src/rrd_open.c