Use va_list variable safely
Use va_list variable safely

va_list variable will be invalid after the first call. Use va_copy to
initialize the va_list for another call.

BUG=skia:
R=djsollen@google.com, mtklein@google.com

Author: qiankun.miao@intel.com

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

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