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

Unified Diff: src/effects/SkBitmapSource.cpp

Issue 83343003: Adding more validation (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Minor fixes Created 7 years, 1 month 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/SkBitmapSource.cpp
diff --git a/src/effects/SkBitmapSource.cpp b/src/effects/SkBitmapSource.cpp
index 854df9df226bf2dbbe1ba92043f59a420632719c..7b1c8902cafb8a93f326eae76b3e295357e5f6ef 100644
--- a/src/effects/SkBitmapSource.cpp
+++ b/src/effects/SkBitmapSource.cpp
@@ -13,7 +13,7 @@ SkBitmapSource::SkBitmapSource(const SkBitmap& bitmap)
}
SkBitmapSource::SkBitmapSource(SkFlattenableReadBuffer& buffer)
- : INHERITED(buffer) {
+ : INHERITED(1, buffer) {
Stephen White 2013/11/25 16:11:21 I'm pretty sure this should be zero (and the other
sugoi 2013/11/25 16:20:33 Done.
fBitmap.unflatten(buffer);
}

Powered by Google App Engine
This is Rietveld 408576698