From 71ab742c8e36dc10b2dbccfb3bacbffbfaed1178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 14 Sep 2024 21:48:11 +0100 Subject: [PATCH] cid#1606633 Overflowed constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit just return early on this failure Change-Id: I0f8d1455e5349af0604818db1a519f2147d51f33 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173380 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- filter/source/graphicfilter/icgm/bitmap.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/filter/source/graphicfilter/icgm/bitmap.cxx b/filter/source/graphicfilter/icgm/bitmap.cxx index 97749fc0da6b..537ebcfe5e35 100644 --- a/filter/source/graphicfilter/icgm/bitmap.cxx +++ b/filter/source/graphicfilter/icgm/bitmap.cxx @@ -325,7 +325,10 @@ bool CGMBitmap::ImplGetDimensions( CGMBitmapDescriptor& rDesc ) rDesc.mbStatus = false; if (!rDesc.mnX || !rDesc.mnY) + { rDesc.mbStatus = false; + return false; + } sal_uInt32 nHeaderSize = 2 + 3 * nPrecision + 3 * mpCGM->ImplGetPointSize();