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

Caolán McNamara caolanm at redhat.com
Sat Mar 18 16:16:23 UTC 2017


 vcl/workben/olefuzzer.cxx |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 7cf3f4d1d74d7954ea38133d6b73e047db33a6ed
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Mar 18 16:15:31 2017 +0000

    ofz#891 an exception is an acceptable outcome
    
    Change-Id: Ia5939b81f6bc2d44a4966266a91ed14d4fafad2f

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


More information about the Libreoffice-commits mailing list