summaryrefslogtreecommitdiff
path: root/core/fxcodec
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcodec')
-rw-r--r--core/fxcodec/jbig2/JBig2_Image.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/jbig2/JBig2_Image.cpp b/core/fxcodec/jbig2/JBig2_Image.cpp
index b8cb21165b..2071221cd1 100644
--- a/core/fxcodec/jbig2/JBig2_Image.cpp
+++ b/core/fxcodec/jbig2/JBig2_Image.cpp
@@ -23,7 +23,7 @@ CJBig2_Image::CJBig2_Image(int32_t w, int32_t h)
m_nHeight(0),
m_nStride(0),
m_bOwnsBuffer(true) {
- if (w < 0 || h < 0 || w > kMaxImagePixels)
+ if (w <= 0 || h <= 0 || w > kMaxImagePixels)
return;
int32_t stride_pixels = (w + 31) & ~31;