summaryrefslogtreecommitdiff
path: root/basebmp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-03-11 16:15:16 +0000
committerAndras Timar <andras.timar@collabora.com>2016-06-12 21:55:29 +0200
commit6715a7c2eb0b48e59511c3ade5d543345a641289 (patch)
treec980fd7c45470e60f6b3231d1e4a496b3e16a0c2 /basebmp
parenta839c01356c28f23c7e45f9b3babfa36b50c4182 (diff)
Resolves: tdf#94392 huge negative Y causes length exception
because this rendering stuff is deleted in later versions of LibreOffice and replaced with cairo rendering, just bodge this case to give up and go home. Change-Id: I4e60184b0919dc719edfe223ebb2d8ef684608e8 Reviewed-on: https://gerrit.libreoffice.org/23154 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> (cherry picked from commit 93772371096b4caf542146e673a44d8d346a09ab) (cherry picked from commit 0c4ee554c04a38ff0c6d2ac22e559baa95dddaf5)
Diffstat (limited to 'basebmp')
-rw-r--r--basebmp/inc/polypolygonrenderer.hxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/basebmp/inc/polypolygonrenderer.hxx b/basebmp/inc/polypolygonrenderer.hxx
index fef2f7f9a321..a23ab847b5b0 100644
--- a/basebmp/inc/polypolygonrenderer.hxx
+++ b/basebmp/inc/polypolygonrenderer.hxx
@@ -161,7 +161,14 @@ namespace basebmp
return; // really, nothing to do then.
detail::VectorOfVectorOfVertices aGET; // the Global Edge Table
- aGET.resize( nMaxY - nMinY + 1 );
+ try
+ {
+ aGET.resize( nMaxY - nMinY + 1 );
+ }
+ catch (...)
+ {
+ return;
+ }
sal_uInt32 const nVertexCount(
detail::setupGlobalEdgeTable( aGET, rPoly, nMinY ) );