aboutsummaryrefslogtreecommitdiffhomepage
path: root/fuzz/fuzz.cpp
diff options
context:
space:
mode:
authorGravatar Leon Scroggins III <scroggo@google.com>2017-06-29 15:41:32 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-06 15:53:15 +0000
commit005a970eb9d70e729cdebf0f79551577b112aa7b (patch)
treecc5be645ff01e9fe701dc5cc6ccb7c8143a1e8b2 /fuzz/fuzz.cpp
parentec2576864139967dc0359c5ec5223625123354fb (diff)
ICO: Prevent calling 'new' with large values
numImages is read from untrusted data, and as an unsigned short could be up to 65,536. Avoid calling new with this number, which could result in a crash if it pushes the device over the memory limit. Change-Id: Ifff9e0ac6ade2b3d8584af656ea7d2f9eb4998e2 Reviewed-on: https://skia-review.googlesource.com/21269 Reviewed-by: Derek Sollenberger <djsollen@google.com> Commit-Queue: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'fuzz/fuzz.cpp')
0 files changed, 0 insertions, 0 deletions