diff options
author | David Tardon <dtardon@redhat.com> | 2013-06-20 12:39:00 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-06-20 12:43:59 +0200 |
commit | 9e8e5568e2a566119ab57e1653f72f59f7169e94 (patch) | |
tree | f4036d6acd7f22e7339fea56e1e80aba5a6c4bc2 /tools | |
parent | 5c214a04b3e2404495951c9d9520a03011fb0ed6 (diff) |
make this more resilient to stream problems
The metafile stream read in ooxmlexport test for fdo51550.odt is broken
for some reason, so mnTotalSize is not initialized. That means that we
try to seek by an arbitrary value in the destructor.
Change-Id: I3bd5ef3708c816fc8a749b446cecf98c3aa52f65
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/stream/vcompat.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/source/stream/vcompat.cxx b/tools/source/stream/vcompat.cxx index 85c9a1e27924..b81f95636a24 100644 --- a/tools/source/stream/vcompat.cxx +++ b/tools/source/stream/vcompat.cxx @@ -22,6 +22,8 @@ VersionCompat::VersionCompat( SvStream& rStm, sal_uInt16 nStreamMode, sal_uInt16 nVersion ) : mpRWStm ( &rStm ), + mnCompatPos ( 0 ), + mnTotalSize ( 0 ), mnStmMode ( nStreamMode ), mnVersion ( nVersion ) { |