summaryrefslogtreecommitdiff
path: root/vcl/workben/olefuzzer.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-03-18 16:15:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-03-18 16:15:54 +0000
commit7cf3f4d1d74d7954ea38133d6b73e047db33a6ed (patch)
tree11a2cdfc8556e2d77d4db9248e0f2bfc41111506 /vcl/workben/olefuzzer.cxx
parent4436bef02b85d08c9280027d3637c79a956183fc (diff)
ofz#891 an exception is an acceptable outcome
Change-Id: Ia5939b81f6bc2d44a4966266a91ed14d4fafad2f
Diffstat (limited to 'vcl/workben/olefuzzer.cxx')
-rw-r--r--vcl/workben/olefuzzer.cxx8
1 files changed, 7 insertions, 1 deletions
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 (...)
+ {
+ }
}
}