Prevent malformed ICO files from recursively decoding
Prevent malformed ICO files from recursively decoding

R=reed@google.com, scroggo@google.com

Author: djsollen@google.com

Review URL: https://codereview.chromium.org/511453002

MIPS/external-chromium_org-third_party-skia,BrokenROM/external_skia,jtg-gg/skia,HalCanary/skia-hc,ench0/external_chromium_org_third_party_skia,AOSPB/external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,qrealka/skia-hc,samuelig/skia,geekboxzone/mmallow_external_skia,vanish87/skia,Infinitive-OS/platform_external_skia,BrokenROM/external_skia,aosp-mirror/platform_external_skia,PAC-ROM/android_external_skia,TeamExodus/external_skia,FusionSP/external_chromium_org_third_party_skia,aosp-mirror/platform_external_skia,AOSP-YU/platform_external_skia,nvoron23/skia,w3nd1go/android_external_skia,pcwalton/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,AOSP-YU/platform_external_skia,shahrzadmn/skia,MIPS/external-chromium_org-third_party-skia,TeamExodus/external_skia,Jichao/skia,android-ia/platform_external_chromium_org_third_party_skia,YUPlayGodDev/platform_external_skia,VRToxin-AOSP/android_external_skia,aosp-mirror/platform_external_skia,UBERMALLOW/external_skia,geekboxzone/mmallow_external_skia,MIPS/external-chromium_org-third_party-skia,nfxosp/platform_external_skia,amyvmiwei/skia,ominux/skia,UBERMALLOW/external_skia,boulzordev/android_external_skia,ominux/skia,FusionSP/external_chromium_org_third_party_skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,qrealka/skia-hc,amyvmiwei/skia,vanish87/skia,MinimalOS/android_external_chromium_org_third_party_skia,MarshedOut/android_external_skia,OptiPop/external_chromium_org_third_party_skia,MonkeyZZZZ/platform_external_skia,MonkeyZZZZ/platform_external_skia,boulzordev/android_external_skia,VRToxin-AOSP/android_external_skia,samuelig/skia,ench0/external_chromium_org_third_party_skia,w3nd1go/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,pcwalton/skia,PAC-ROM/android_external_skia,DiamondLovesYou/skia-sys,VRToxin-AOSP/android_external_skia,YUPlayGodDev/platform_external_skia,mydongistiny/external_chromium_org_third_party_skia,nvoron23/skia,Hikari-no-Tenshi/android_external_skia,AOSP-YU/platform_external_skia,noselhq/skia,w3nd1go/android_external_skia,scroggo/skia,samuelig/skia,MinimalOS/android_external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,nvoron23/skia,MinimalOS/external_chromium_org_third_party_skia,jtg-gg/skia,TeamEOS/external_chromium_org_third_party_skia,OptiPop/external_chromium_org_third_party_skia,samuelig/skia,todotodoo/skia,OptiPop/external_chromium_org_third_party_skia,HalCanary/skia-hc,YUPlayGodDev/platform_external_skia,google/skia,nvoron23/skia,chenlian2015/skia_from_google,geekboxzone/mmallow_external_skia,scroggo/skia,chenlian2015/skia_from_google,timduru/platform-external-skia,Jichao/skia,tmpvar/skia.cc,tmpvar/skia.cc,UBERMALLOW/external_skia,TeamExodus/external_skia,qrealka/skia-hc,YUPlayGodDev/platform_external_skia,DARKPOP/external_chromium_org_third_party_skia,todotodoo/skia,invisiblek/android_external_skia,DARKPOP/external_chromium_org_third_party_skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,ominux/skia,HalCanary/skia-hc,MinimalOS/android_external_chromium_org_third_party_skia,TeamExodus/external_skia,TeamEOS/external_chromium_org_third_party_skia,Infinitive-OS/platform_external_skia,nfxosp/platform_external_skia,noselhq/skia,TeamExodus/external_skia,TeamTwisted/external_skia,OptiPop/external_chromium_org_third_party_skia,AOSP-YU/platform_external_skia,OneRom/external_skia,DARKPOP/external_chromium_org_third_party_skia,amyvmiwei/skia,ench0/external_chromium_org_third_party_skia,MyAOSP/external_chromium_org_third_party_skia,invisiblek/android_external_skia,YUPlayGodDev/platform_external_skia,vanish87/skia,VRToxin-AOSP/android_external_skia,invisiblek/android_external_skia,OneRom/external_skia,samuelig/skia,TeamTwisted/external_skia,ench0/external_chromium_org_third_party_skia,MyAOSP/external_chromium_org_third_party_skia,TeamTwisted/external_skia,amyvmiwei/skia,Fusion-Rom/external_chromium_org_third_party_skia,tmpvar/skia.cc,MinimalOS/android_external_chromium_org_third_party_skia,MarshedOut/android_external_skia,spezi77/android_external_skia,amyvmiwei/skia,noselhq/skia,android-ia/platform_external_chromium_org_third_party_skia,MonkeyZZZZ/platform_external_skia,Infinitive-OS/platform_external_skia,todotodoo/skia,geekboxzone/mmallow_external_skia,TeamExodus/external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,tmpvar/skia.cc,BrokenROM/external_skia,YUPlayGodDev/platform_external_skia,shahrzadmn/skia,scroggo/skia,MyAOSP/external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,tmpvar/skia.cc,noselhq/skia,shahrzadmn/skia,MinimalOS-AOSP/platform_external_skia,tmpvar/skia.cc,HalCanary/skia-hc,qrealka/skia-hc,invisiblek/android_external_skia,Jichao/skia,google/skia,todotodoo/skia,android-ia/platform_external_chromium_org_third_party_skia,google/skia,TeamExodus/external_skia,android-ia/platform_external_chromium_org_third_party_skia,scroggo/skia,todotodoo/skia,pcwalton/skia,Fusion-Rom/external_chromium_org_third_party_skia,nvoron23/skia,Igalia/skia,rubenvb/skia,nvoron23/skia,MarshedOut/android_external_skia,OneRom/external_skia,MinimalOS/external_chromium_org_third_party_skia,boulzordev/android_external_skia,rubenvb/skia,AOSPB/external_skia,DiamondLovesYou/skia-sys,DARKPOP/external_chromium_org_third_party_skia,pcwalton/skia,TeamEOS/external_chromium_org_third_party_skia,Omegaphora/external_chromium_org_third_party_skia,TeamTwisted/external_skia,todotodoo/skia,YUPlayGodDev/platform_external_skia,Infinitive-OS/platform_external_skia,rubenvb/skia,spezi77/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,nvoron23/skia,AOSP-YU/platform_external_skia,mydongistiny/external_chromium_org_third_party_skia,AOSP-YU/platform_external_skia,AOSPB/external_skia,scroggo/skia,Hikari-no-Tenshi/android_external_skia,shahrzadmn/skia,mydongistiny/external_chromium_org_third_party_skia,nfxosp/platform_external_skia,tmpvar/skia.cc,nvoron23/skia,ench0/external_chromium_org_third_party_skia,invisiblek/android_external_skia,google/skia,nfxosp/platform_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,Igalia/skia,TeamTwisted/external_skia,BrokenROM/external_skia,w3nd1go/android_external_skia,TeamExodus/external_skia,Igalia/skia,rubenvb/skia,samuelig/skia,MonkeyZZZZ/platform_external_skia,TeamTwisted/external_skia,jtg-gg/skia,nvoron23/skia,PAC-ROM/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,ench0/external_chromium_org_third_party_skia,Infinitive-OS/platform_external_skia,boulzordev/android_external_skia,shahrzadmn/skia,Igalia/skia,Igalia/skia,VRToxin-AOSP/android_external_skia,timduru/platform-external-skia,geekboxzone/mmallow_external_skia,rubenvb/skia,invisiblek/android_external_skia,HalCanary/skia-hc,shahrzadmn/skia,TeamTwisted/external_skia,boulzordev/android_external_skia,ominux/skia,MarshedOut/android_external_skia,Infinitive-OS/platform_external_skia,AOSPB/external_skia,MIPS/external-chromium_org-third_party-skia,chenlian2015/skia_from_google,MarshedOut/android_external_skia,HalCanary/skia-hc,AOSP-YU/platform_external_skia,YUPlayGodDev/platform_external_skia,invisiblek/android_external_skia,AOSPB/external_skia,Hikari-no-Tenshi/android_external_skia,noselhq/skia,MIPS/external-chromium_org-third_party-skia,mydongistiny/external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,Fusion-Rom/external_chromium_org_third_party_skia,nfxosp/platform_external_skia,VRToxin-AOSP/android_external_skia,vanish87/skia,TeamTwisted/external_skia,w3nd1go/android_external_skia,AOSPB/external_skia,nfxosp/platform_external_skia,vanish87/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,MinimalOS/android_external_chromium_org_third_party_skia,Igalia/skia,Hikari-no-Tenshi/android_external_skia,ominux/skia,samuelig/skia,amyvmiwei/skia,DARKPOP/external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,AOSPB/external_skia,google/skia,Omegaphora/external_chromium_org_third_party_skia,HalCanary/skia-hc,vanish87/skia,pcwalton/skia,w3nd1go/android_external_skia,OptiPop/external_chromium_org_third_party_skia,geekboxzone/mmallow_external_skia,UBERMALLOW/external_skia,PAC-ROM/android_external_skia,MarshedOut/android_external_skia,qrealka/skia-hc,jtg-gg/skia,scroggo/skia,Jichao/skia,Omegaphora/external_chromium_org_third_party_skia,ench0/external_chromium_org_third_party_skia,geekboxzone/mmallow_external_skia,timduru/platform-external-skia,noselhq/skia,Omegaphora/external_chromium_org_third_party_skia,vanish87/skia,VRToxin-AOSP/android_external_skia,todotodoo/skia,MonkeyZZZZ/platform_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,AOSPB/external_skia,PAC-ROM/android_external_skia,UBERMALLOW/external_skia,MinimalOS/android_external_chromium_org_third_party_skia,mydongistiny/external_chromium_org_third_party_skia,rubenvb/skia,HalCanary/skia-hc,chenlian2015/skia_from_google,geekboxzone/lollipop_external_chromium_org_third_party_skia,noselhq/skia,MyAOSP/external_chromium_org_third_party_skia,DARKPOP/external_chromium_org_third_party_skia,scroggo/skia,noselhq/skia,Omegaphora/external_chromium_org_third_party_skia,ominux/skia,PAC-ROM/android_external_skia,pcwalton/skia,DiamondLovesYou/skia-sys,Infinitive-OS/platform_external_skia,MonkeyZZZZ/platform_external_skia,OneRom/external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,google/skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,aosp-mirror/platform_external_skia,DiamondLovesYou/skia-sys,MyAOSP/external_chromium_org_third_party_skia,spezi77/android_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,timduru/platform-external-skia,Jichao/skia,boulzordev/android_external_skia,timduru/platform-external-skia,MinimalOS/external_chromium_org_third_party_skia,OneRom/external_skia,Omegaphora/external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,ench0/external_chromium_org_third_party_skia,MinimalOS-AOSP/platform_external_skia,qrealka/skia-hc,PAC-ROM/android_external_skia,rubenvb/skia,MinimalOS-AOSP/platform_external_skia,MyAOSP/external_chromium_org_third_party_skia,noselhq/skia,TeamEOS/external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,MarshedOut/android_external_skia,MinimalOS-AOSP/platform_external_skia,Jichao/skia,Igalia/skia,FusionSP/external_chromium_org_third_party_skia,Omegaphora/external_chromium_org_third_party_skia,OneRom/external_skia,qrealka/skia-hc,MarshedOut/android_external_skia,MonkeyZZZZ/platform_external_skia,invisiblek/android_external_skia,OneRom/external_skia,YUPlayGodDev/platform_external_skia,BrokenROM/external_skia,ominux/skia,aosp-mirror/platform_external_skia,OneRom/external_skia,Jichao/skia,geekboxzone/mmallow_external_skia,MyAOSP/external_chromium_org_third_party_skia,AOSPB/external_skia,todotodoo/skia,spezi77/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,BrokenROM/external_skia,TeamEOS/external_chromium_org_third_party_skia,UBERMALLOW/external_skia,ominux/skia,MarshedOut/android_external_skia,rubenvb/skia,timduru/platform-external-skia,chenlian2015/skia_from_google,vanish87/skia,google/skia,UBERMALLOW/external_skia,google/skia,geekboxzone/mmallow_external_skia,Igalia/skia,TeamEOS/external_chromium_org_third_party_skia,OptiPop/external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,FusionSP/external_chromium_org_third_party_skia,w3nd1go/android_external_skia,amyvmiwei/skia,Infinitive-OS/platform_external_skia,OptiPop/external_chromium_org_third_party_skia,PAC-ROM/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,mydongistiny/external_chromium_org_third_party_skia,MinimalOS/external_chromium_org_third_party_skia,MonkeyZZZZ/platform_external_skia,chenlian2015/skia_from_google,jtg-gg/skia,MonkeyZZZZ/platform_external_skia,nfxosp/platform_external_skia,tmpvar/skia.cc,OptiPop/external_chromium_org_third_party_skia,w3nd1go/android_external_skia,ominux/skia,DARKPOP/external_chromium_org_third_party_skia,aosp-mirror/platform_external_skia,TeamTwisted/external_skia,DiamondLovesYou/skia-sys,qrealka/skia-hc,nfxosp/platform_external_skia,boulzordev/android_external_skia,boulzordev/android_external_skia,samuelig/skia,MinimalOS-AOSP/platform_external_skia,TeamEOS/external_chromium_org_third_party_skia,pcwalton/skia,Omegaphora/external_chromium_org_third_party_skia,jtg-gg/skia,vanish87/skia,VRToxin-AOSP/android_external_skia,shahrzadmn/skia,todotodoo/skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,amyvmiwei/skia,OneRom/external_skia,google/skia,spezi77/android_external_skia,w3nd1go/android_external_skia,MyAOSP/external_chromium_org_third_party_skia,shahrzadmn/skia,MinimalOS-AOSP/platform_external_skia,Infinitive-OS/platform_external_skia,rubenvb/skia,MinimalOS-AOSP/platform_external_skia,UBERMALLOW/external_skia,scroggo/skia,Fusion-Rom/external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,MIPS/external-chromium_org-third_party-skia,Fusion-Rom/external_chromium_org_third_party_skia,jtg-gg/skia,shahrzadmn/skia,Jichao/skia,Jichao/skia,boulzordev/android_external_skia,AOSP-YU/platform_external_skia,tmpvar/skia.cc,MinimalOS-AOSP/platform_external_skia,nfxosp/platform_external_skia,mydongistiny/external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,google/skia,TeamExodus/external_skia,chenlian2015/skia_from_google,TeamEOS/external_chromium_org_third_party_skia,timduru/platform-external-skia,spezi77/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,pcwalton/skia,AOSP-YU/platform_external_skia,DiamondLovesYou/skia-sys,mydongistiny/external_chromium_org_third_party_skia,Fusion-Rom/external_chromium_org_third_party_skia,UBERMALLOW/external_skia,pcwalton/skia,BrokenROM/external_skia,DARKPOP/external_chromium_org_third_party_skia,BrokenROM/external_skia,aosp-mirror/platform_external_skia,MinimalOS-AOSP/platform_external_skia,rubenvb/skia,DiamondLovesYou/skia-sys,PAC-ROM/android_external_skia