commit | 005a970eb9d70e729cdebf0f79551577b112aa7b | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Thu Jun 29 15:41:32 2017 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Jul 06 15:53:15 2017 +0000 |
tree | cc5be645ff01e9fe701dc5cc6ccb7c8143a1e8b2 | |
parent | ec2576864139967dc0359c5ec5223625123354fb [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>