Index: src/effects/SkColorFilters.cpp |
diff --git a/src/effects/SkColorFilters.cpp b/src/effects/SkColorFilters.cpp |
index 66ddb0250a7d24d10d63b62adf87eaedb390a55a..d53e20cf0686423f76c8233db666284e3bfae036 100644 |
--- a/src/effects/SkColorFilters.cpp |
+++ b/src/effects/SkColorFilters.cpp |
@@ -13,6 +13,7 @@ |
#include "SkFlattenableBuffers.h" |
#include "SkUtils.h" |
#include "SkString.h" |
+#include "SkValidationUtils.h" |
#define ILLEGAL_XFERMODE_MODE ((SkXfermode::Mode)-1) |
@@ -101,6 +102,7 @@ protected: |
fColor = buffer.readColor(); |
fMode = (SkXfermode::Mode)buffer.readUInt(); |
this->updateCache(); |
+ buffer.validate(SkIsValidMode(fMode)); |
} |
private: |