Fix stack corruption in ODS reader.
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 9 May 2013 09:28:12 +0000 (11:28 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 9 May 2013 09:28:12 +0000 (11:28 +0200)
commit659c54ca0aa9728f7b7783347a6be741ffb87ff3
tree63369db5abc252e7330f80073f5806137cf6249e
parent09f6f854addb3226177a3bf8de4b05f9c9b2c65e
Fix stack corruption in ODS reader.

zip_reader_create takes a pointer to a struct string, which
is used to  store error messages during zip operations.  I had
been passing the address of a string declared as local variable
in ods_probe.  However since the zip reader survives ods_probe,
this caused stack corruption in later read operations.

This change makes the string a member of the reader created (if any).
src/data/ods-reader.c