summaryrefslogtreecommitdiff
path: root/core/fpdftext
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2017-09-26 12:14:57 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-26 20:05:13 +0000
commit8c806cf08ff928630142f769ca689f7c89bfd648 (patch)
tree983d634d4f5cdfe842f739491e2f0d50ca77a79e /core/fpdftext
parente2df5b7305df66efbd81232d911615af60624ae3 (diff)
downloadpdfium-8c806cf08ff928630142f769ca689f7c89bfd648.tar.xz
Confirm that a global palette has data before attempting to use it
Previous implementation assumed that if the local colour palette was not specified and the global palette had its size specified, then use the global. If the global palette is disable, it will not have data, but it may have a size. Technically the size is giberish in this case, but the value is allowed to be non-zero, so isn't a sufficient check. BUG=chromium:768089 Change-Id: Iaec15fcd65f3983056df7d56d29118a516334cd9 Reviewed-on: https://pdfium-review.googlesource.com/14819 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdftext')
0 files changed, 0 insertions, 0 deletions