| Index: src/images/SkScaledBitmapSampler.cpp
|
| diff --git a/src/images/SkScaledBitmapSampler.cpp b/src/images/SkScaledBitmapSampler.cpp
|
| index a040329965ebac19314e3a0b9d15dee8c91323d4..f79eb6f905f110703810786302e207d8fc380e6a 100644
|
| --- a/src/images/SkScaledBitmapSampler.cpp
|
| +++ b/src/images/SkScaledBitmapSampler.cpp
|
| @@ -762,7 +762,9 @@ bool SkScaledBitmapSampler::sampleInterlaced(const uint8_t* SK_RESTRICT src, int
|
| // of the destination bitmap's pixels, which is used to calculate the destination row
|
| // each time this function is called.
|
| const int dstY = srcYMinusY0 / fDY;
|
| - SkASSERT(dstY < fScaledHeight);
|
| + if (dstY >= fScaledHeight) {
|
| + return false;
|
| + }
|
| char* dstRow = fDstRow + dstY * fDstRowBytes;
|
| return fRowProc(dstRow, src + fX0 * fSrcPixelSize, fScaledWidth,
|
| fDX * fSrcPixelSize, dstY, fCTable);
|
|
|