diff options
author | Nicolas Pena <npm@chromium.org> | 2017-05-04 12:08:43 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-04 18:50:27 +0000 |
commit | 34f735c9ef34b3bb6493016c7fbeb6df76cf31f5 (patch) | |
tree | 14200502c3b1bbff1b045da10ce8e574adb6341e /fpdfsdk | |
parent | cf53b788ca1c097c0cbbca3dee048520eb9dabd4 (diff) | |
download | pdfium-34f735c9ef34b3bb6493016c7fbeb6df76cf31f5.tar.xz |
Fix undefined shift in opj_get_all_encoding_parameters
The value 1u << (l_pdx + l_level_no) is only used to calculate a minimum,
so skip it when the shift doesn't even fit unsigned integer. Also use the uint
min version since all values being considered are unsigned anyways.
Bug: chromium:666892
Change-Id: I79c6e52022aa894033c5cdabec29c4b8313e293b
Reviewed-on: https://pdfium-review.googlesource.com/4891
Reviewed-by: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'fpdfsdk')
0 files changed, 0 insertions, 0 deletions