summaryrefslogtreecommitdiff
path: root/xfa/fgas/crt/ifgas_stream.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-04-10 16:14:05 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-04-10 20:55:50 +0000
commitc6c71f1062aa8b22d432af5cbbfddf038a6d2d3f (patch)
tree30dc786c618318ab69c337b334e9b805d67ca7cf /xfa/fgas/crt/ifgas_stream.cpp
parentcdb7e1f6adf0b6c0c2e2f9bedcb442292efbbab7 (diff)
downloadpdfium-c6c71f1062aa8b22d432af5cbbfddf038a6d2d3f.tar.xz
Use checked_numeric to guard shift
It's possible for the RANGELEN[NTEMP] value to be larger then 32. This will make the shift invalid if the 1 is an int. This CL changes to 1L and uses the CheckedNumeric to validate that the result is inside the needed range for an int. Bug: chromium:708439 Change-Id: I1f0359985c2d7769367bd0edcf5e081f5bb58816 Reviewed-on: https://pdfium-review.googlesource.com/3991 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'xfa/fgas/crt/ifgas_stream.cpp')
0 files changed, 0 insertions, 0 deletions