Defend against ICOs with large BMPs embedded DO NOT MERGE

If the ICO reports that it has a large BMP file embedded, do not
crash if we attempt to allocate too much memory.

Bug: 38116746

Merged-In: Ie6665dc8ade3beb19c276c4d48d1fabc077a2e6c
Change-Id: I70eb66f5e4ffc15587007b398bbe843665eae500
Reviewed-on: https://skia-review.googlesource.com/18447
Reviewed-by: Matt Sarett <msarett@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
(cherry picked from commit 6029322ad78e0120cce18a01ae74e082c0e542fe)
3 files changed