diff options
author | Noel Grandin <noel@peralex.com> | 2015-02-27 10:36:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-02 08:59:18 +0200 |
commit | e2ac5e744e9a4a3776a72bde4778ed1e48c5e895 (patch) | |
tree | abec19de88a27fd33df964df9e2fbcf2affb45e3 /vcl/source | |
parent | af5b4d295a4df3f1234bbed25d29941a908d340e (diff) |
cppcheck: unsignedLessThanZero
Change-Id: I5beba0730f7403eb51f3717401b8d456f645348f
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/filter/jpeg/JpegReader.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/jpeg/JpegReader.cxx b/vcl/source/filter/jpeg/JpegReader.cxx index 78c2ae81b381..0450bc602b4d 100644 --- a/vcl/source/filter/jpeg/JpegReader.cxx +++ b/vcl/source/filter/jpeg/JpegReader.cxx @@ -207,7 +207,7 @@ unsigned char * JPEGReader::CreateBitmap( JPEGCreateBitmapParam * pParam ) if (pParam->nWidth > SAL_MAX_INT32 / 8 || pParam->nHeight > SAL_MAX_INT32 / 8) return NULL; // avoid overflows later - if (pParam->nWidth <= 0 || pParam->nHeight <=0) + if (pParam->nWidth == 0 || pParam->nHeight == 0) return NULL; Size aSize( pParam->nWidth, pParam->nHeight ); |