diff options
author | dsinclair <dsinclair@chromium.org> | 2016-08-08 11:10:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-08 11:10:48 -0700 |
commit | b1b8668ef12ae4e7fcb5fbf3f01fa623a319a092 (patch) | |
tree | 061370a217f3563a50391421e4884e09dab7d754 /fpdfsdk/fpdfdoc_embeddertest.cpp | |
parent | 33c4cdb4efbacb73151c982549151ea4e545eff8 (diff) | |
download | pdfium-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 'fpdfsdk/fpdfdoc_embeddertest.cpp')
0 files changed, 0 insertions, 0 deletions