[Libreoffice-commits] core.git: tools/source

David Tardon dtardon at redhat.com
Thu Jun 20 03:45:15 PDT 2013


 tools/source/stream/vcompat.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 9e8e5568e2a566119ab57e1653f72f59f7169e94
Author: David Tardon <dtardon at redhat.com>
Date:   Thu Jun 20 12:39:00 2013 +0200

    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

diff --git a/tools/source/stream/vcompat.cxx b/tools/source/stream/vcompat.cxx
index 85c9a1e..b81f956 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 )
 {


More information about the Libreoffice-commits mailing list