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

Unified Diff: src/core/SkImageFilter.cpp

Issue 1873463002: Add SkFUZZF to help whitelist imagefilter fuzz failures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address code review issues Created 4 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
« no previous file with comments | « src/core/SkFuzzLogging.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkImageFilter.cpp
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp
index fb5c9157b67da79a996cd50b8d7856d4f984ad9d..4af335ef4104b3b8c7da93b7f2932b9b7f494372 100644
--- a/src/core/SkImageFilter.cpp
+++ b/src/core/SkImageFilter.cpp
@@ -12,6 +12,7 @@
#include "SkBitmapDevice.h"
#include "SkChecksum.h"
#include "SkDevice.h"
+#include "SkFuzzLogging.h"
#include "SkLocalMatrixImageFilter.h"
#include "SkMatrixImageFilter.h"
#include "SkOncePtr.h"
@@ -137,6 +138,7 @@ bool SkImageFilter::Common::unflatten(SkReadBuffer& buffer, int expectedCount) {
return false;
}
+ SkFUZZF(("allocInputs: %d\n", count));
this->allocInputs(count);
for (int i = 0; i < count; i++) {
if (buffer.readBool()) {
« no previous file with comments | « src/core/SkFuzzLogging.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698