diff options
author | dsinclair <dsinclair@chromium.org> | 2016-06-07 09:48:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-07 09:48:39 -0700 |
commit | 8975902470dbfc15289b69f41e43ad0433ca51ae (patch) | |
tree | 8a83a3b3501e00092b11b62e92007141c6e479bd /xfa/fxfa/app/xfa_ffsubform.cpp | |
parent | 720217d3f9e65b8237748f01ffbd4a296f81612e (diff) | |
download | pdfium-8975902470dbfc15289b69f41e43ad0433ca51ae.tar.xz |
Verify we have a CJBig2_Image before attempting use.
In CJBig2_SDDProc::decode_Arith we will set a SDNEWSYMS value to nullptr if the
height or width are 0. With the PDF from the bug, all of the decoders are set
to nullptr. Then, we call into CJBig2_TRDProc::decode_Arith and pull out
one of the nullptr decoders and attempt to use it, crashing.
This CL adds a check that we have a non-null decoder before attempting to use
the decoder.
BUG=pdfium:511
Review-Url: https://codereview.chromium.org/2048683002
Diffstat (limited to 'xfa/fxfa/app/xfa_ffsubform.cpp')
0 files changed, 0 insertions, 0 deletions