Index: src/effects/SkBlurMaskFilter.cpp |
=================================================================== |
--- src/effects/SkBlurMaskFilter.cpp (revision 11049) |
+++ src/effects/SkBlurMaskFilter.cpp (working copy) |
@@ -292,7 +292,9 @@ |
} |
smallR[0].set(rects[0].left(), rects[0].top(), rects[0].right() - dx, rects[0].bottom() - dy); |
- SkASSERT(!smallR[0].isEmpty()); |
+ if (smallR[0].width() < 2 || smallR[0].height() < 2) { |
+ return kUnimplemented_FilterReturn; |
+ } |
if (2 == count) { |
smallR[1].set(rects[1].left(), rects[1].top(), |
rects[1].right() - dx, rects[1].bottom() - dy); |