Lines Matching full:fuzz
8 #include "Fuzz.h"
16 DEF_FUZZ(Pathop, fuzz) { in DEF_FUZZ() argument
19 fuzz->nextRange(&choice, 0, 4); in DEF_FUZZ()
23 fuzz->nextRange(&ops, 0, MAX_OPS); in DEF_FUZZ()
25 for (uint8_t i = 0; i < ops && !fuzz->exhausted(); i++) { in DEF_FUZZ()
27 FuzzEvilPath(fuzz, &path, SkPath::Verb::kDone_Verb); in DEF_FUZZ()
29 fuzz->nextRange(&ft, 0, SkPath::kInverseEvenOdd_FillType); in DEF_FUZZ()
33 fuzz->nextRange(&op, 0, SkPathOp::kReverseDifference_SkPathOp); in DEF_FUZZ()
43 FuzzEvilPath(fuzz, &path, SkPath::Verb::kDone_Verb); in DEF_FUZZ()
45 fuzz->nextRange(&ft, 0, SkPath::kInverseEvenOdd_FillType); in DEF_FUZZ()
50 fuzz->next(&isSame); in DEF_FUZZ()
59 FuzzEvilPath(fuzz, &path, SkPath::Verb::kDone_Verb); in DEF_FUZZ()
61 fuzz->nextRange(&ft, 0, SkPath::kInverseEvenOdd_FillType); in DEF_FUZZ()
65 FuzzEvilPath(fuzz, &path2, SkPath::Verb::kDone_Verb); in DEF_FUZZ()
66 fuzz->nextRange(&ft, 0, SkPath::kInverseEvenOdd_FillType); in DEF_FUZZ()
70 fuzz->nextRange(&op, 0, SkPathOp::kReverseDifference_SkPathOp); in DEF_FUZZ()
74 fuzz->nextRange(&pickOutput, 0, 2); in DEF_FUZZ()
85 FuzzEvilPath(fuzz, &path, SkPath::Verb::kDone_Verb); in DEF_FUZZ()
87 fuzz->nextRange(&ft, 0, SkPath::kInverseEvenOdd_FillType); in DEF_FUZZ()
92 fuzz->next(&isSame); in DEF_FUZZ()
101 FuzzEvilPath(fuzz, &path, SkPath::Verb::kDone_Verb); in DEF_FUZZ()
103 fuzz->nextRange(&ft, 0, SkPath::kInverseEvenOdd_FillType); in DEF_FUZZ()
120 void BuildPath(Fuzz* fuzz, SkPath* path) { in BuildPath() argument
121 while (!fuzz->exhausted()) { in BuildPath()
125 fuzz->next(&operation); in BuildPath()
130 if (fuzz->remaining() < (2*sizeof(SkScalar))) { in BuildPath()
131 fuzz->deplete(); in BuildPath()
134 fuzz->next(&a, &b); in BuildPath()
139 if (fuzz->remaining() < (2*sizeof(SkScalar))) { in BuildPath()
140 fuzz->deplete(); in BuildPath()
143 fuzz->next(&a, &b); in BuildPath()
148 if (fuzz->remaining() < (4*sizeof(SkScalar))) { in BuildPath()
149 fuzz->deplete(); in BuildPath()
152 fuzz->next(&a, &b, &c, &d); in BuildPath()
157 if (fuzz->remaining() < (5*sizeof(SkScalar))) { in BuildPath()
158 fuzz->deplete(); in BuildPath()
161 fuzz->next(&a, &b, &c, &d, &e); in BuildPath()
166 if (fuzz->remaining() < (6*sizeof(SkScalar))) { in BuildPath()
167 fuzz->deplete(); in BuildPath()
170 fuzz->next(&a, &b, &c, &d, &e, &f); in BuildPath()
185 DEF_FUZZ(LegacyChromiumPathop, fuzz) { in DEF_FUZZ() argument
188 while (!fuzz->exhausted()) { in DEF_FUZZ()
191 fuzz->next(&op); in DEF_FUZZ()
192 if (fuzz->exhausted()) { in DEF_FUZZ()
196 BuildPath(fuzz, &path); in DEF_FUZZ()