Fix BMP RLE bug: attempt 2

BUG=skia:

Review URL: https://codereview.chromium.org/1457213003
This commit is contained in:
msarett 2015-11-19 08:59:12 -08:00 committed by Commit bot
parent 24e7db8b2e
commit a37662937c

View File

@ -349,7 +349,7 @@ int SkBmpRLECodec::decodeRows(const SkImageInfo& info, void* dst, size_t dstRowB
y++;
break;
case RLE_EOF:
return y;
return height;
case RLE_DELTA: {
// Two bytes are needed to specify delta
if ((int) fRLEBytes - fCurrRLEByte < 2) {