[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Wed Nov 12 06:58:48 PST 2014
vcl/source/filter/igif/gifread.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit dba04714fc5ba0e0f4798351397b61748eaa5785
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Nov 12 14:55:52 2014 +0000
pebcak, condition reversed
Change-Id: Icc89a32093e92dd7d05e4b7f5d79bfa01da1b0a5
diff --git a/vcl/source/filter/igif/gifread.cxx b/vcl/source/filter/igif/gifread.cxx
index 7ded7a0..2ed44e0 100644
--- a/vcl/source/filter/igif/gifread.cxx
+++ b/vcl/source/filter/igif/gifread.cxx
@@ -331,7 +331,7 @@ bool GIFReader::ReadExtension()
{
sal_uInt16 nCount = (sal_uInt16) cSize + 1;
const sal_uInt64 nMaxPossible = rIStm.remainingSize();
- if (nMaxPossible > nCount)
+ if (nCount > nMaxPossible)
nCount = nMaxPossible;
boost::scoped_array<sal_uInt8> pBuffer(new sal_uInt8[nCount]);
More information about the Libreoffice-commits
mailing list