summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_bytestring.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-06-08 15:09:35 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-06-08 19:41:04 +0000
commit2ddf1ccbf8c0596c0ba994114420a50fca2240f3 (patch)
tree8219bc4bca22b75fe34ba1b33d3755339d7d7af2 /core/fxcrt/cfx_bytestring.cpp
parent0915087c64d64023f503d466b73835c09d0ed3a3 (diff)
downloadpdfium-2ddf1ccbf8c0596c0ba994114420a50fca2240f3.tar.xz
Guard against undefined shifting in JPX decoder
If the prec value in syncc444_to_rgb is more then 30 then when we shift left we'll go negative. The subsequent -1 will cause an overflow. This CL early returns if the prec value is > 30. Bug: chromium:728321 Change-Id: I4d25e9bab840bc6d46f8db3490c9484392cd7a32 Reviewed-on: https://pdfium-review.googlesource.com/6414 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_bytestring.cpp')
0 files changed, 0 insertions, 0 deletions