[Libreoffice-commits] core.git: vcl/workben

Caolán McNamara caolanm at redhat.com
Tue Mar 21 09:45:21 UTC 2017


 vcl/workben/olefuzzer.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4753e83f2e06175c1a02d239bddb6eb03f4c531b
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Mar 21 09:39:33 2017 +0000

    ofz#891 catch exceptions harder
    
    Change-Id: Ieec895533c8220bb03164489a3e268defb4a8899

diff --git a/vcl/workben/olefuzzer.cxx b/vcl/workben/olefuzzer.cxx
index b77a70b46c93..ec0d79bfb2ab 100644
--- a/vcl/workben/olefuzzer.cxx
+++ b/vcl/workben/olefuzzer.cxx
@@ -49,10 +49,10 @@ void traverse(const tools::SvRef<SotStorage>& rStorage, std::vector<unsigned cha
 
 void TestImportOLE2(SvStream &rStream, size_t nSize)
 {
-    tools::SvRef<SotStorage> xRootStorage(new SotStorage(&rStream, false));
-    std::vector<unsigned char> aTmpBuf(nSize);
     try
     {
+        tools::SvRef<SotStorage> xRootStorage(new SotStorage(&rStream, false));
+        std::vector<unsigned char> aTmpBuf(nSize);
         traverse(xRootStorage, aTmpBuf);
     }
     catch (...)


More information about the Libreoffice-commits mailing list