Prevent divide by zeros in CJBig2_GSIDProc::decode_MMR().
authorLei Zhang <thestig@chromium.org>
Fri, 2 Oct 2015 17:58:42 +0000 (10:58 -0700)
committerLei Zhang <thestig@chromium.org>
Fri, 2 Oct 2015 17:58:42 +0000 (10:58 -0700)
commit9fb70fbded5c0bf4f5313a49fd3496b4d4fa71ca
treea6191222ec55bd8625f36b5942fc538f80c98349
parent63d0a52a6af7d327fdb5792f520cc8d93fe2f1bb
Prevent divide by zeros in CJBig2_GSIDProc::decode_MMR().

Check the image size before attempting to decode.

BUG=538103
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1377493005 .
core/src/fxcodec/jbig2/JBig2_Context.cpp