summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_Context.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-08-08 11:10:48 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-08 11:10:48 -0700
commitb1b8668ef12ae4e7fcb5fbf3f01fa623a319a092 (patch)
tree061370a217f3563a50391421e4884e09dab7d754 /core/fxcodec/jbig2/JBig2_Context.h
parent33c4cdb4efbacb73151c982549151ea4e545eff8 (diff)
downloadpdfium-b1b8668ef12ae4e7fcb5fbf3f01fa623a319a092.tar.xz
Check if image width or height are zero before proceeding.
If the width of the CJBig2_Image is set to 0 then the stride_pixels will be zero and when we divide we'll get a floating point exception. If the width or height are zero then we can exit early without proceeding with the rest of the constructor. BUG=chromium:635008 Review-Url: https://codereview.chromium.org/2222843004
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_Context.h')
0 files changed, 0 insertions, 0 deletions