SkScaledBitmapSampler: fix memory overwritten
SkScaledBitmapSampler: fix memory overwritten

Cherry-picked from https://codereview.chromium.org/1085253002
in Skia.

Memory will be overwritten while downsampling some
interlaced gif images, most commonly with odd sizes,
when index of destination row stores in the current
line computed from GifInterlaceIter meets:

 X is an integer in [0..height-1]
   and
 (X < height)
 && ((X - sampleSize/2) % sampleSize == 0)
 && ((X - sampleSize/2)/sampleSize >= height/sampleSize)

Signed-off-by: Lu Tong <lu.x.tong@sonymobile.com>

BUG=skia:

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

BUG:20723696
Change-Id: I2cca83a2a5c39b5a497f36b40724262b438ead8b

timduru/platform-external-skia,TeamTwisted/external_skia,YUPlayGodDev/platform_external_skia,TeamTwisted/external_skia,UBERMALLOW/external_skia,Infinitive-OS/platform_external_skia,timduru/platform-external-skia,MonkeyZZZZ/platform_external_skia,MinimalOS-AOSP/platform_external_skia,TeamTwisted/external_skia,timduru/platform-external-skia,OneRom/external_skia,BrokenROM/external_skia,timduru/platform-external-skia,w3nd1go/android_external_skia,boulzordev/android_external_skia,MonkeyZZZZ/platform_external_skia,TeamExodus/external_skia,PAC-ROM/android_external_skia,geekboxzone/mmallow_external_skia,invisiblek/android_external_skia,VRToxin-AOSP/android_external_skia,geekboxzone/mmallow_external_skia,MarshedOut/android_external_skia,VRToxin-AOSP/android_external_skia,w3nd1go/android_external_skia,boulzordev/android_external_skia,geekboxzone/mmallow_external_skia,w3nd1go/android_external_skia,AOSPB/external_skia,UBERMALLOW/external_skia,AOSP-YU/platform_external_skia,nfxosp/platform_external_skia,AOSPB/external_skia,MonkeyZZZZ/platform_external_skia,spezi77/android_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,TeamTwisted/external_skia,geekboxzone/mmallow_external_skia,TeamTwisted/external_skia,BrokenROM/external_skia,MonkeyZZZZ/platform_external_skia,Hikari-no-Tenshi/android_external_skia,MonkeyZZZZ/platform_external_skia,BrokenROM/external_skia,boulzordev/android_external_skia,YUPlayGodDev/platform_external_skia,w3nd1go/android_external_skia,MinimalOS-AOSP/platform_external_skia,AOSP-YU/platform_external_skia,OneRom/external_skia,timduru/platform-external-skia,OneRom/external_skia,VRToxin-AOSP/android_external_skia,aosp-mirror/platform_external_skia,Infinitive-OS/platform_external_skia,spezi77/android_external_skia,Hikari-no-Tenshi/android_external_skia,TeamTwisted/external_skia,OneRom/external_skia,PAC-ROM/android_external_skia,OneRom/external_skia,UBERMALLOW/external_skia,MarshedOut/android_external_skia,OneRom/external_skia,Hikari-no-Tenshi/android_external_skia,UBERMALLOW/external_skia,OneRom/external_skia,PAC-ROM/android_external_skia,VRToxin-AOSP/android_external_skia,boulzordev/android_external_skia,BrokenROM/external_skia,spezi77/android_external_skia,MarshedOut/android_external_skia,PAC-ROM/android_external_skia,YUPlayGodDev/platform_external_skia,BrokenROM/external_skia,invisiblek/android_external_skia,PAC-ROM/android_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,TeamExodus/external_skia,nfxosp/platform_external_skia,MonkeyZZZZ/platform_external_skia,invisiblek/android_external_skia,spezi77/android_external_skia,AOSP-YU/platform_external_skia,AOSP-YU/platform_external_skia,OneRom/external_skia,invisiblek/android_external_skia,YUPlayGodDev/platform_external_skia,geekboxzone/mmallow_external_skia,VRToxin-AOSP/android_external_skia,geekboxzone/mmallow_external_skia,Hikari-no-Tenshi/android_external_skia,TeamTwisted/external_skia,MinimalOS-AOSP/platform_external_skia,Hikari-no-Tenshi/android_external_skia,w3nd1go/android_external_skia,Infinitive-OS/platform_external_skia,MinimalOS-AOSP/platform_external_skia,timduru/platform-external-skia,UBERMALLOW/external_skia,PAC-ROM/android_external_skia,VRToxin-AOSP/android_external_skia,MarshedOut/android_external_skia,BrokenROM/external_skia,TeamExodus/external_skia,MarshedOut/android_external_skia,MinimalOS-AOSP/platform_external_skia,nfxosp/platform_external_skia,boulzordev/android_external_skia,UBERMALLOW/external_skia,TeamExodus/external_skia,nfxosp/platform_external_skia,invisiblek/android_external_skia,nfxosp/platform_external_skia,UBERMALLOW/external_skia,MonkeyZZZZ/platform_external_skia,TeamExodus/external_skia,invisiblek/android_external_skia,Infinitive-OS/platform_external_skia,MarshedOut/android_external_skia,AOSP-YU/platform_external_skia,Infinitive-OS/platform_external_skia,spezi77/android_external_skia,OneRom/external_skia,AOSPB/external_skia,w3nd1go/android_external_skia,PAC-ROM/android_external_skia,aosp-mirror/platform_external_skia,MonkeyZZZZ/platform_external_skia,AOSP-YU/platform_external_skia,YUPlayGodDev/platform_external_skia,w3nd1go/android_external_skia,AOSPB/external_skia,BrokenROM/external_skia,Hikari-no-Tenshi/android_external_skia,nfxosp/platform_external_skia,VRToxin-AOSP/android_external_skia,UBERMALLOW/external_skia,Hikari-no-Tenshi/android_external_skia,PAC-ROM/android_external_skia,geekboxzone/mmallow_external_skia,timduru/platform-external-skia,aosp-mirror/platform_external_skia,w3nd1go/android_external_skia,invisiblek/android_external_skia,MinimalOS-AOSP/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,geekboxzone/mmallow_external_skia,YUPlayGodDev/platform_external_skia,PAC-ROM/android_external_skia,VRToxin-AOSP/android_external_skia,nfxosp/platform_external_skia,TeamExodus/external_skia,AOSPB/external_skia,MonkeyZZZZ/platform_external_skia,MarshedOut/android_external_skia,TeamTwisted/external_skia,MinimalOS-AOSP/platform_external_skia,AOSPB/external_skia,invisiblek/android_external_skia,nfxosp/platform_external_skia,geekboxzone/mmallow_external_skia,Hikari-no-Tenshi/android_external_skia,TeamTwisted/external_skia,Infinitive-OS/platform_external_skia,BrokenROM/external_skia,TeamExodus/external_skia,boulzordev/android_external_skia,MarshedOut/android_external_skia,spezi77/android_external_skia,boulzordev/android_external_skia,Infinitive-OS/platform_external_skia,MinimalOS-AOSP/platform_external_skia,AOSPB/external_skia,AOSP-YU/platform_external_skia,YUPlayGodDev/platform_external_skia,MinimalOS-AOSP/platform_external_skia,w3nd1go/android_external_skia,boulzordev/android_external_skia,aosp-mirror/platform_external_skia,TeamExodus/external_skia,Infinitive-OS/platform_external_skia,YUPlayGodDev/platform_external_skia,nfxosp/platform_external_skia,TeamExodus/external_skia,AOSP-YU/platform_external_skia,AOSPB/external_skia,VRToxin-AOSP/android_external_skia,YUPlayGodDev/platform_external_skia,MarshedOut/android_external_skia,UBERMALLOW/external_skia,Infinitive-OS/platform_external_skia,AOSPB/external_skia,boulzordev/android_external_skia,AOSP-YU/platform_external_skia