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

Unified Diff: Source/platform/graphics/filters/FEColorMatrix.cpp

Issue 1075413002: Explicitly enforce values size in feColorMatrix. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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: Source/platform/graphics/filters/FEColorMatrix.cpp
diff --git a/Source/platform/graphics/filters/FEColorMatrix.cpp b/Source/platform/graphics/filters/FEColorMatrix.cpp
index 75c66bafa9cf21c24e5577b6f9186708530c89a6..689edd37ddcbccd11181990a53e63f3a79619200 100644
--- a/Source/platform/graphics/filters/FEColorMatrix.cpp
+++ b/Source/platform/graphics/filters/FEColorMatrix.cpp
@@ -63,6 +63,7 @@ const Vector<float>& FEColorMatrix::values() const
bool FEColorMatrix::setValues(const Vector<float> &values)
{
+ ASSERT(values.size() == 20);
if (m_values == values)
return false;
m_values = values;
« Source/core/svg/SVGFEColorMatrixElement.cpp ('K') | « Source/core/svg/SVGFEColorMatrixElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698