oox/source/ole/olehelper.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit a271321ab7d66eab007f998237e7fb09dd5c9bf7
Author: Caolán McNamara <caol...@redhat.com>
Date:   Wed Mar 22 21:14:55 2017 +0000

    crashtesting: these should be opened readonly
    
    Change-Id: I99f6e06955d05688aba95a6f1246078b3ecd7772

diff --git a/oox/source/ole/olehelper.cxx b/oox/source/ole/olehelper.cxx
index b32e69620283..cfc7966eb892 100644
--- a/oox/source/ole/olehelper.cxx
+++ b/oox/source/ole/olehelper.cxx
@@ -518,13 +518,13 @@ bool MSConvertOCXControls::ReadOCXStorage( 
tools::SvRef<SotStorage>& xOleStg,
 {
     if ( xOleStg.is() )
     {
-        tools::SvRef<SotStorageStream> pNameStream = xOleStg->OpenSotStream( 
"\3OCXNAME");
+        tools::SvRef<SotStorageStream> pNameStream = 
xOleStg->OpenSotStream("\3OCXNAME", StreamMode::READ);
         BinaryXInputStream aNameStream( Reference< XInputStream >( new 
utl::OSeekableInputStreamWrapper( *pNameStream ) ), true );
 
-        tools::SvRef<SotStorageStream> pContents = xOleStg->OpenSotStream( 
"contents");
+        tools::SvRef<SotStorageStream> pContents = 
xOleStg->OpenSotStream("contents", StreamMode::READ);
         BinaryXInputStream aInStrm(  Reference< XInputStream >( new 
utl::OSeekableInputStreamWrapper( *pContents ) ), true );
 
-        tools::SvRef<SotStorageStream> pClsStrm = 
xOleStg->OpenSotStream("\1CompObj");
+        tools::SvRef<SotStorageStream> pClsStrm = 
xOleStg->OpenSotStream("\1CompObj", StreamMode::READ);
         BinaryXInputStream aClsStrm( Reference< XInputStream >( new 
utl::OSeekableInputStreamWrapper(*pClsStrm ) ), true );
         aClsStrm.skip(12);
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to