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

Unified Diff: fuzz/FuzzPaeth.cpp

Issue 1581203003: some fuzz hacking (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: unused Created 4 years, 11 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 | « fuzz/Fuzz.h ('k') | fuzz/fuzz.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fuzz/FuzzPaeth.cpp
diff --git a/fuzz/FuzzPaeth.cpp b/fuzz/FuzzPaeth.cpp
index aa7deb09e2bed1651b883af3aad322d192f01f8e..d7c139ce7a32d4cfa34bc97fee799af29124e5d4 100644
--- a/fuzz/FuzzPaeth.cpp
+++ b/fuzz/FuzzPaeth.cpp
@@ -33,8 +33,8 @@ static uint8_t paeth_alt(uint8_t a, uint8_t b, uint8_t c) {
}
DEF_FUZZ(Paeth, fuzz) {
- int a = fuzz->nextU(),
- b = fuzz->nextU(),
- c = fuzz->nextU();
+ auto a = fuzz->nextB(),
+ b = fuzz->nextB(),
+ c = fuzz->nextB();
ASSERT(paeth_alt(a,b,c) == paeth_std(a,b,c));
}
« no previous file with comments | « fuzz/Fuzz.h ('k') | fuzz/fuzz.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698