update ooo310-m15
[ooovba.git] / applied_patches / 0157-calc-xls-decryption-crash-fix.diff
blob934e000d6d5f880a10c117af6c747ff7c49298b7
1 Index: sc/source/filter/excel/xicontent.cxx
2 ===================================================================
3 --- sc/source/filter/excel/xicontent.cxx (revision 270727)
4 +++ sc/source/filter/excel/xicontent.cxx (working copy)
5 @@ -1096,6 +1096,10 @@
6 case EXC_BIFF8: xDecr = lclReadFilepass8( rStrm ); break;
7 default: DBG_ERROR_BIFF();
8 };
10 + if (!xDecr.is())
11 + return EXC_ENCR_ERROR_UNSUPP_CRYPT;
13 // set decrypter at import stream
14 rStrm.SetDecrypter( xDecr );
16 @@ -1107,7 +1111,7 @@
17 pSet->Put( SfxStringItem(SID_PASSWORD, aPass) );
20 - return xDecr.is() ? xDecr->GetError() : EXC_ENCR_ERROR_UNSUPP_CRYPT;
21 + return xDecr->GetError();
24 // Document protection ========================================================