diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-22 21:14:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-22 21:14:55 +0000 |
commit | a271321ab7d66eab007f998237e7fb09dd5c9bf7 (patch) | |
tree | bf946c34b29b7333d601548abea942c5416623ff | |
parent | be630d7bd9298c1447983af99959aa7de2d6e2a1 (diff) |
crashtesting: these should be opened readonly
Change-Id: I99f6e06955d05688aba95a6f1246078b3ecd7772
-rw-r--r-- | oox/source/ole/olehelper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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); |