Kaydet (Commit) e2ac5e74 authored tarafından Noel Grandin's avatar Noel Grandin

cppcheck: unsignedLessThanZero

Change-Id: I5beba0730f7403eb51f3717401b8d456f645348f
üst af5b4d29
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment