ods-reader: Fix write beyond end of buffer. 20120316030503/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 15 Mar 2012 05:05:54 +0000 (22:05 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 15 Mar 2012 23:17:07 +0000 (16:17 -0700)
commit1b2cb239d8f0c940526bbc89d659f2ac1396528d
tree2c8a778175699f3c882494ace90d91c52a43ef03
parentaa699d5ccbfef21d9c97e09d99a4bfa8243407f7
ods-reader: Fix write beyond end of buffer.

The compiler multiplies by sizeof *var_spec for us here, so doing
it ourselves writes past the end of the allocated space.

Tracked down with valgrind.

Reported-by: bojo42 <bojo42@gmail.com>
src/data/ods-reader.c