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

Unified Diff: src/core/SkValidatingReadBuffer.cpp

Issue 44573002: Enabling validation code in serialization and adding serialization to fuzzer (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fixed SkValidatingReadBuffer's constructor Created 7 years, 2 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
« no previous file with comments | « 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/SkValidatingReadBuffer.cpp
diff --git a/src/core/SkValidatingReadBuffer.cpp b/src/core/SkValidatingReadBuffer.cpp
index a0e1a4179f2cd18ff431203aa8b1091102a68ec7..323273d131a25d80a84d0aa671aea023f1c9f501 100644
--- a/src/core/SkValidatingReadBuffer.cpp
+++ b/src/core/SkValidatingReadBuffer.cpp
@@ -11,10 +11,9 @@
#include "SkStream.h"
#include "SkTypeface.h"
-SkValidatingReadBuffer::SkValidatingReadBuffer(const void* data, size_t size) {
+SkValidatingReadBuffer::SkValidatingReadBuffer(const void* data, size_t size) :
+ fError(false) {
this->setMemory(data, size);
- fError = false;
-
this->setFlags(SkFlattenableReadBuffer::kValidation_Flag);
}
« no previous file with comments | « src/core/SkFlattenableSerialization.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698