Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1163)

Unified Diff: src/effects/SkBicubicImageFilter.cpp

Issue 22799007: I'm investigating how to make the IPC transfer a bit more secure on the (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: New fuzzer added Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/effects/SkBicubicImageFilter.cpp
diff --git a/src/effects/SkBicubicImageFilter.cpp b/src/effects/SkBicubicImageFilter.cpp
index db8dbfd0286c506b98cc4a58720d5e67820f562d..69d33ea4f07138cc1185049c0430d152e917c700 100644
--- a/src/effects/SkBicubicImageFilter.cpp
+++ b/src/effects/SkBicubicImageFilter.cpp
@@ -99,6 +99,9 @@ bool SkBicubicImageFilter::onFilterImage(Proxy* proxy,
SkScalarMul(SkIntToScalar(src.height()), fScale.fHeight));
SkIRect dstIRect;
dstRect.roundOut(&dstIRect);
+ if (dstIRect.isEmpty()) {
Stephen White 2013/08/21 20:49:26 In the belt-and-suspenders department, we should a
sugoi 2013/08/21 21:12:09 Isn't returning false enough ? It's pretty much th
Stephen White 2013/08/21 21:23:00 OK, maybe I'm confused. I thought you said at one
sugoi 2013/08/21 21:34:01 Ah, ok, I see what you mean. Since the size is 0 x
+ return false;
+ }
result->setConfig(src.config(), dstIRect.width(), dstIRect.height());
result->allocPixels();
if (!result->getPixels()) {

Powered by Google App Engine
This is Rietveld 408576698