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

Unified Diff: src/core/SkOrderedReadBuffer.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: 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
« include/core/SkFlattenable.h ('K') | « src/core/SkFlattenableSerialization.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkOrderedReadBuffer.cpp
diff --git a/src/core/SkOrderedReadBuffer.cpp b/src/core/SkOrderedReadBuffer.cpp
index 9d991949084e5b9586d57baeaadf72363eb3e3ef..6028c231f80d44eb33107af5ee6d459501f54c60 100644
--- a/src/core/SkOrderedReadBuffer.cpp
+++ b/src/core/SkOrderedReadBuffer.cpp
@@ -288,8 +288,8 @@ SkFlattenable* SkOrderedReadBuffer::readFlattenable() {
factory = (*fFactoryTDArray)[index];
} else {
factory = (SkFlattenable::Factory)readFunctionPtr();
- if (NULL == factory) {
- return NULL; // writer failed to give us the flattenable
+ if (NULL == factory || NULL == SkFlattenable::FactoryToName(factory)) {
sugoi 2013/08/16 20:58:46 I quickly realized that using SkFlattenable::Facto
+ return NULL; // writer failed to give us a valid factory
}
}
sugoi 2013/08/13 15:20:26 At this point, if possible, I'd like to be able to
« include/core/SkFlattenable.h ('K') | « src/core/SkFlattenableSerialization.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698