Index: src/core/SkScan_AntiPath.cpp |
diff --git a/src/core/SkScan_AntiPath.cpp b/src/core/SkScan_AntiPath.cpp |
index 158f34d265bc352562412014ef3abe285b313c0c..545a70129e1a3950b8f7eda3a51f881753e30ff3 100644 |
--- a/src/core/SkScan_AntiPath.cpp |
+++ b/src/core/SkScan_AntiPath.cpp |
@@ -454,7 +454,10 @@ MaskSuperBlitter::MaskSuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, co |
fMask.fFormat = SkMask::kA8_Format; |
fClipRect = ir; |
- fClipRect.intersect(clip.getBounds()); |
+ if (!fClipRect.intersect(clip.getBounds())) { |
+ SkASSERT(0); |
+ fClipRect.setEmpty(); |
+ } |
// For valgrind, write 1 extra byte at the end so we don't read |
// uninitialized memory. See comment in add_aa_span and fStorage[]. |