[Libreoffice-commits] .: vcl/source
Caolán McNamara
caolan at kemper.freedesktop.org
Mon Apr 23 12:42:30 PDT 2012
vcl/source/gdi/pngread.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7f5be85719985ce54ff65b88aaa420ed5b2e7a9b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Apr 23 20:35:40 2012 +0100
cut out negative widths/heights early
diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx
index 81b9280..a7cf7ec 100644
--- a/vcl/source/gdi/pngread.cxx
+++ b/vcl/source/gdi/pngread.cxx
@@ -472,7 +472,7 @@ sal_Bool PNGReaderImpl::ImplReadHeader( const Size& rPreviewSizeHint )
maOrigSize.Width() = ImplReadsal_uInt32();
maOrigSize.Height() = ImplReadsal_uInt32();
- if ( !maOrigSize.Width() || !maOrigSize.Height() )
+ if (maOrigSize.Width() <= 0 || maOrigSize.Height() <= 0)
return sal_False;
mnPngDepth = *(maDataIter++);
More information about the Libreoffice-commits
mailing list