/external/openssh/regress/unittests/test_helper/ |
D | fuzz.c | 59 struct fuzz { struct 103 fuzz_fmt(struct fuzz *fuzz, char *s, size_t n) in fuzz_fmt() argument 105 if (fuzz == NULL) in fuzz_fmt() 108 switch (fuzz->strategy) { in fuzz_fmt() 111 fuzz_ntop(fuzz->strategy), in fuzz_fmt() 112 fuzz->o1, fuzz->slen * 8, fuzz->o1); in fuzz_fmt() 116 fuzz_ntop(fuzz->strategy), in fuzz_fmt() 117 (((fuzz_ullong)fuzz->o2) * fuzz->slen * 8) + fuzz->o1, in fuzz_fmt() 118 ((fuzz_ullong)fuzz->slen * 8) * fuzz->slen * 8, in fuzz_fmt() 119 fuzz->o1, fuzz->o2); in fuzz_fmt() [all …]
|
/external/skqp/fuzz/ |
D | FuzzCanvas.cpp | 92 inline T make_fuzz_t(Fuzz* fuzz) { in make_fuzz_t() argument 94 fuzz->next(&t); in make_fuzz_t() 104 static sk_sp<SkColorFilter> make_fuzz_colorfilter(Fuzz* fuzz, int depth) { in make_fuzz_colorfilter() argument 109 fuzz->nextRange(&colorFilterType, 0, 8); in make_fuzz_colorfilter() 116 fuzz->next(&color); in make_fuzz_colorfilter() 117 fuzz->nextRange(&mode, 0, SkBlendMode::kLastMode); in make_fuzz_colorfilter() 121 sk_sp<SkColorFilter> outer = make_fuzz_colorfilter(fuzz, depth - 1); in make_fuzz_colorfilter() 125 sk_sp<SkColorFilter> inner = make_fuzz_colorfilter(fuzz, depth - 1); in make_fuzz_colorfilter() 131 fuzz->nextN(array, SK_ARRAY_COUNT(array)); in make_fuzz_colorfilter() 136 fuzz->next(&mul, &add); in make_fuzz_colorfilter() [all …]
|
D | FuzzDrawFunctions.cpp | 25 static void init_string(Fuzz* fuzz, char* str, size_t bufSize) { in init_string() argument 27 fuzz->nextRange(&str[i], 0x20, 0x7E); // printable ASCII in init_string() 33 static void init_paint(Fuzz* fuzz, SkPaint* p) { in init_paint() argument 35 fuzz->next(&b); in init_paint() 39 fuzz->nextRange(&tmp_u8, 0, (int)SkBlendMode::kLastMode); in init_paint() 43 fuzz->next(&co); in init_paint() 46 fuzz->next(&b); in init_paint() 49 fuzz->nextRange(&tmp_u8, 0, (int)kHigh_SkFilterQuality); in init_paint() 52 fuzz->nextRange(&tmp_u8, 0, (int)SkPaint::kLast_Cap); in init_paint() 55 fuzz->nextRange(&tmp_u8, 0, (int)SkPaint::kLast_Join); in init_paint() [all …]
|
D | FuzzCommon.cpp | 12 static void fuzz_nice_float(Fuzz* fuzz, float* f) { in fuzz_nice_float() argument 14 fuzz->next(&v); in fuzz_nice_float() 20 static void fuzz_nice_float(Fuzz* fuzz, float* f, Args... rest) { in fuzz_nice_float() argument 21 fuzz_nice_float(fuzz, f); in fuzz_nice_float() 22 fuzz_nice_float(fuzz, rest...); in fuzz_nice_float() 25 static void fuzz_nice_rect(Fuzz* fuzz, SkRect* r) { in fuzz_nice_rect() argument 26 fuzz_nice_float(fuzz, &r->fLeft, &r->fTop, &r->fRight, &r->fBottom); in fuzz_nice_rect() 31 void FuzzNicePath(Fuzz* fuzz, SkPath* path, int maxOps) { in FuzzNicePath() argument 32 if (maxOps <= 0 || fuzz->exhausted() || path->countPoints() > 100000) { in FuzzNicePath() 36 fuzz->nextRange(&fillType, 0, (uint8_t)SkPath::kInverseEvenOdd_FillType); in FuzzNicePath() [all …]
|
D | FuzzPathop.cpp | 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() [all …]
|
D | FuzzParsePath.cpp | 38 static void add_white(Fuzz* fuzz, SkString* atom) { in add_white() argument 46 fuzz->nextRange(&reps, 0, 2); in add_white() 49 fuzz->nextRange(&index, 0, (int) SK_ARRAY_COUNT(gWhiteSpace) - 1); in add_white() 56 static void add_some_white(Fuzz* fuzz, SkString* atom) { in add_some_white() argument 58 add_white(fuzz, atom); in add_some_white() 62 static void add_comma(Fuzz* fuzz, SkString* atom) { in add_comma() argument 67 add_white(fuzz, atom); in add_comma() 69 fuzz->next(&b); in add_comma() 73 add_some_white(fuzz, atom); in add_comma() 76 SkString MakeRandomParsePathPiece(Fuzz* fuzz) { in MakeRandomParsePathPiece() argument [all …]
|
D | FuzzGradients.cpp | 20 void makeMatrix(Fuzz* fuzz, SkMatrix* m) { in makeMatrix() argument 22 fuzz->nextN(mat, 9); in makeMatrix() 26 void initGradientParams(Fuzz* fuzz, std::vector<SkColor>* colors, in initGradientParams() argument 29 fuzz->nextRange(&count, 0, MAX_COUNT); in initGradientParams() 34 fuzz->nextRange(&m, 0, 2); in initGradientParams() 42 fuzz->next(&c, &s); in initGradientParams() 106 void fuzzLinearGradient(Fuzz* fuzz) { in fuzzLinearGradient() argument 108 fuzz->next(&pts[0].fX, &pts[0].fY, &pts[1].fX, &pts[1].fY); in fuzzLinearGradient() 110 fuzz->next(&useLocalMatrix, &useGlobalMatrix); in fuzzLinearGradient() 115 initGradientParams(fuzz, &colors, &pos, &mode); in fuzzLinearGradient() [all …]
|
D | FuzzEncoders.cpp | 26 static SkBitmap make_fuzzed_bitmap(Fuzz* fuzz) { in make_fuzzed_bitmap() argument 29 fuzz->nextRange(&w, 1, MAX_WIDTH); in make_fuzzed_bitmap() 30 fuzz->nextRange(&h, 1, MAX_HEIGHT); in make_fuzzed_bitmap() 35 fuzz->nextN((SkPMColor*)bm.getPixels(), n); in make_fuzzed_bitmap() 39 DEF_FUZZ(PNGEncoder, fuzz) { in DEF_FUZZ() argument 40 auto bm = make_fuzzed_bitmap(fuzz); in DEF_FUZZ() 43 fuzz->nextRange(&opts.fZLibLevel, 0, 9); in DEF_FUZZ() 49 DEF_FUZZ(JPEGEncoder, fuzz) { in DEF_FUZZ() argument 50 auto bm = make_fuzzed_bitmap(fuzz); in DEF_FUZZ() 53 fuzz->nextRange(&opts.fQuality, 0, 100); in DEF_FUZZ() [all …]
|
/external/skia/fuzz/ |
D | FuzzCanvas.cpp | 92 inline T make_fuzz_t(Fuzz* fuzz) { in make_fuzz_t() argument 94 fuzz->next(&t); in make_fuzz_t() 104 static sk_sp<SkColorFilter> make_fuzz_colorfilter(Fuzz* fuzz, int depth) { in make_fuzz_colorfilter() argument 109 fuzz->nextRange(&colorFilterType, 0, 8); in make_fuzz_colorfilter() 116 fuzz->next(&color); in make_fuzz_colorfilter() 117 fuzz->nextRange(&mode, 0, SkBlendMode::kLastMode); in make_fuzz_colorfilter() 121 sk_sp<SkColorFilter> outer = make_fuzz_colorfilter(fuzz, depth - 1); in make_fuzz_colorfilter() 125 sk_sp<SkColorFilter> inner = make_fuzz_colorfilter(fuzz, depth - 1); in make_fuzz_colorfilter() 131 fuzz->nextN(array, SK_ARRAY_COUNT(array)); in make_fuzz_colorfilter() 136 fuzz->next(&mul, &add); in make_fuzz_colorfilter() [all …]
|
D | FuzzDrawFunctions.cpp | 25 static void init_string(Fuzz* fuzz, char* str, size_t bufSize) { in init_string() argument 27 fuzz->nextRange(&str[i], 0x20, 0x7E); // printable ASCII in init_string() 33 static void init_paint(Fuzz* fuzz, SkPaint* p) { in init_paint() argument 35 fuzz->next(&b); in init_paint() 39 fuzz->nextRange(&tmp_u8, 0, (int)SkBlendMode::kLastMode); in init_paint() 43 fuzz->next(&co); in init_paint() 46 fuzz->next(&b); in init_paint() 49 fuzz->nextRange(&tmp_u8, 0, (int)kHigh_SkFilterQuality); in init_paint() 52 fuzz->nextRange(&tmp_u8, 0, (int)SkPaint::kLast_Cap); in init_paint() 55 fuzz->nextRange(&tmp_u8, 0, (int)SkPaint::kLast_Join); in init_paint() [all …]
|
D | FuzzCommon.cpp | 12 static void fuzz_nice_float(Fuzz* fuzz, float* f) { in fuzz_nice_float() argument 14 fuzz->next(&v); in fuzz_nice_float() 20 static void fuzz_nice_float(Fuzz* fuzz, float* f, Args... rest) { in fuzz_nice_float() argument 21 fuzz_nice_float(fuzz, f); in fuzz_nice_float() 22 fuzz_nice_float(fuzz, rest...); in fuzz_nice_float() 25 static void fuzz_nice_rect(Fuzz* fuzz, SkRect* r) { in fuzz_nice_rect() argument 26 fuzz_nice_float(fuzz, &r->fLeft, &r->fTop, &r->fRight, &r->fBottom); in fuzz_nice_rect() 31 void FuzzNicePath(Fuzz* fuzz, SkPath* path, int maxOps) { in FuzzNicePath() argument 32 if (maxOps <= 0 || fuzz->exhausted() || path->countPoints() > 100000) { in FuzzNicePath() 36 fuzz->nextRange(&fillType, 0, (uint8_t)SkPath::kInverseEvenOdd_FillType); in FuzzNicePath() [all …]
|
D | FuzzPathop.cpp | 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() [all …]
|
D | FuzzParsePath.cpp | 38 static void add_white(Fuzz* fuzz, SkString* atom) { in add_white() argument 46 fuzz->nextRange(&reps, 0, 2); in add_white() 49 fuzz->nextRange(&index, 0, (int) SK_ARRAY_COUNT(gWhiteSpace) - 1); in add_white() 56 static void add_some_white(Fuzz* fuzz, SkString* atom) { in add_some_white() argument 58 add_white(fuzz, atom); in add_some_white() 62 static void add_comma(Fuzz* fuzz, SkString* atom) { in add_comma() argument 67 add_white(fuzz, atom); in add_comma() 69 fuzz->next(&b); in add_comma() 73 add_some_white(fuzz, atom); in add_comma() 76 SkString MakeRandomParsePathPiece(Fuzz* fuzz) { in MakeRandomParsePathPiece() argument [all …]
|
D | FuzzGradients.cpp | 20 void makeMatrix(Fuzz* fuzz, SkMatrix* m) { in makeMatrix() argument 22 fuzz->nextN(mat, 9); in makeMatrix() 26 void initGradientParams(Fuzz* fuzz, std::vector<SkColor>* colors, in initGradientParams() argument 29 fuzz->nextRange(&count, 0, MAX_COUNT); in initGradientParams() 34 fuzz->nextRange(&m, 0, 2); in initGradientParams() 42 fuzz->next(&c, &s); in initGradientParams() 106 void fuzzLinearGradient(Fuzz* fuzz) { in fuzzLinearGradient() argument 108 fuzz->next(&pts[0].fX, &pts[0].fY, &pts[1].fX, &pts[1].fY); in fuzzLinearGradient() 110 fuzz->next(&useLocalMatrix, &useGlobalMatrix); in fuzzLinearGradient() 115 initGradientParams(fuzz, &colors, &pos, &mode); in fuzzLinearGradient() [all …]
|
D | FuzzEncoders.cpp | 26 static SkBitmap make_fuzzed_bitmap(Fuzz* fuzz) { in make_fuzzed_bitmap() argument 29 fuzz->nextRange(&w, 1, MAX_WIDTH); in make_fuzzed_bitmap() 30 fuzz->nextRange(&h, 1, MAX_HEIGHT); in make_fuzzed_bitmap() 35 fuzz->nextN((SkPMColor*)bm.getPixels(), n); in make_fuzzed_bitmap() 39 DEF_FUZZ(PNGEncoder, fuzz) { in DEF_FUZZ() argument 40 auto bm = make_fuzzed_bitmap(fuzz); in DEF_FUZZ() 43 fuzz->nextRange(&opts.fZLibLevel, 0, 9); in DEF_FUZZ() 49 DEF_FUZZ(JPEGEncoder, fuzz) { in DEF_FUZZ() argument 50 auto bm = make_fuzzed_bitmap(fuzz); in DEF_FUZZ() 53 fuzz->nextRange(&opts.fQuality, 0, 100); in DEF_FUZZ() [all …]
|
/external/openssh/regress/unittests/sshkey/ |
D | test_fuzz.c | 42 onerror(void *fuzz) in onerror() argument 45 fuzz_dump((struct fuzz *)fuzz); in onerror() 53 struct fuzz *fuzz; in public_fuzz() local 58 fuzz = fuzz_begin(FUZZ_1_BIT_FLIP | /* XXX too slow FUZZ_2_BIT_FLIP | */ in public_fuzz() 66 TEST_ONERROR(onerror, fuzz); in public_fuzz() 67 for(; !fuzz_done(fuzz); fuzz_next(fuzz)) { in public_fuzz() 68 if (sshkey_from_blob(fuzz_ptr(fuzz), fuzz_len(fuzz), &k1) == 0) in public_fuzz() 71 fuzz_cleanup(fuzz); in public_fuzz() 77 struct fuzz *fuzz; in sig_fuzz() local 83 fuzz = fuzz_begin(FUZZ_1_BIT_FLIP | /* too slow FUZZ_2_BIT_FLIP | */ in sig_fuzz() [all …]
|
/external/libchrome/mojo/public/tools/fuzzers/ |
D | mojo_fuzzer_message_dump.cc | 72 fuzz::mojom::FuzzUnionPtr union_bool = fuzz::mojom::FuzzUnion::New(); in GetBoolFuzzUnion() 79 auto GetStructMapFuzzUnion(fuzz::mojom::FuzzDummyStructPtr in) { in GetStructMapFuzzUnion() 80 fuzz::mojom::FuzzUnionPtr union_struct_map = fuzz::mojom::FuzzUnion::New(); in GetStructMapFuzzUnion() 81 base::flat_map<std::string, fuzz::mojom::FuzzDummyStructPtr> struct_map; in GetStructMapFuzzUnion() 89 auto GetComplexFuzzUnion(fuzz::mojom::FuzzUnionPtr in) { in GetComplexFuzzUnion() 93 outer[fuzz::mojom::FuzzEnum::FUZZ_VALUE0])>::type inner; in GetComplexFuzzUnion() 99 outer[fuzz::mojom::FuzzEnum::FUZZ_VALUE0] = std::move(inner); in GetComplexFuzzUnion() 103 fuzz::mojom::FuzzUnionPtr union_complex = fuzz::mojom::FuzzUnion::New(); in GetComplexFuzzUnion() 110 decltype(fuzz::mojom::FuzzStruct::fuzz_primitive_array) primitive_array; in GetFuzzStructPrimitiveArrayValue() 117 decltype(fuzz::mojom::FuzzStruct::fuzz_primitive_map) primitive_map; in GetFuzzStructPrimitiveMapValue() [all …]
|
D | fuzz_impl.h | 12 class FuzzImpl : public fuzz::mojom::FuzzInterface, 13 public fuzz::mojom::FuzzDummyInterface { 15 explicit FuzzImpl(fuzz::mojom::FuzzInterfaceRequest request); 22 void FuzzArgs(fuzz::mojom::FuzzStructPtr a, 23 fuzz::mojom::FuzzStructPtr b) override; 25 void FuzzArgsResp(fuzz::mojom::FuzzStructPtr a, 26 fuzz::mojom::FuzzStructPtr b, 28 void FuzzArgsSyncResp(fuzz::mojom::FuzzStructPtr a, 29 fuzz::mojom::FuzzStructPtr b, 33 fuzz::mojom::FuzzDummyInterfaceAssociatedRequest req) override;
|
D | fuzz_impl.cc | 10 FuzzImpl::FuzzImpl(fuzz::mojom::FuzzInterfaceRequest request) in FuzzImpl() 25 void FuzzImpl::FuzzArgs(fuzz::mojom::FuzzStructPtr a, in FuzzArgs() 26 fuzz::mojom::FuzzStructPtr b) {} in FuzzArgs() 28 void FuzzImpl::FuzzArgsResp(fuzz::mojom::FuzzStructPtr a, in FuzzArgsResp() 29 fuzz::mojom::FuzzStructPtr b, in FuzzArgsResp() 34 void FuzzImpl::FuzzArgsSyncResp(fuzz::mojom::FuzzStructPtr a, in FuzzArgsSyncResp() 35 fuzz::mojom::FuzzStructPtr b, in FuzzArgsSyncResp() 41 fuzz::mojom::FuzzDummyInterfaceAssociatedRequest req) { in FuzzAssociated()
|
/external/openssh/regress/unittests/sshbuf/ |
D | test_sshbuf_getput_fuzz.c | 74 onerror(void *fuzz) in onerror() argument 77 fuzz_dump((struct fuzz *)fuzz); in onerror() 117 struct fuzz *fuzz; in sshbuf_getput_fuzz_tests() local 120 fuzz = fuzz_begin(FUZZ_1_BIT_FLIP | FUZZ_2_BIT_FLIP | in sshbuf_getput_fuzz_tests() 123 TEST_ONERROR(onerror, fuzz); in sshbuf_getput_fuzz_tests() 124 for(; !fuzz_done(fuzz); fuzz_next(fuzz)) in sshbuf_getput_fuzz_tests() 126 fuzz_cleanup(fuzz); in sshbuf_getput_fuzz_tests()
|
/external/python/cpython3/Modules/_xxtestfuzz/ |
D | README.rst | 4 These fuzz tests are designed to be included in Google's `oss-fuzz`_ project. 6 oss-fuzz works against a library exposing a function of the form 11 oss-fuzz will regularly pull from CPython, discover all the tests in 13 automatically be run in oss-fuzz, while also being smoke-tested as part of 16 Adding a new fuzz test 35 ``LLVMFuzzerTestOneInput`` will run in oss-fuzz, with each test in 38 What makes a good fuzz test 43 fuzz test. See the existing examples for reference, and refer to the 44 `oss-fuzz`_ docs. 46 .. _oss-fuzz: https://github.com/google/oss-fuzz
|
/external/skqp/fuzz/oss_fuzz/ |
D | FuzzRegionSetPath.cpp | 15 void FuzzRegionSetPath(Fuzz* fuzz) { in FuzzRegionSetPath() argument 17 FuzzNicePath(fuzz, &p, 1000); in FuzzRegionSetPath() 20 fuzz->next(&initR1); in FuzzRegionSetPath() 22 fuzz->next(&r1); in FuzzRegionSetPath() 25 fuzz->next(&r2); in FuzzRegionSetPath() 42 Fuzz fuzz(bytes); in LLVMFuzzerTestOneInput() local 43 FuzzRegionSetPath(&fuzz); in LLVMFuzzerTestOneInput()
|
/external/skia/fuzz/oss_fuzz/ |
D | FuzzRegionSetPath.cpp | 15 void FuzzRegionSetPath(Fuzz* fuzz) { in FuzzRegionSetPath() argument 17 FuzzNicePath(fuzz, &p, 1000); in FuzzRegionSetPath() 20 fuzz->next(&initR1); in FuzzRegionSetPath() 22 fuzz->next(&r1); in FuzzRegionSetPath() 25 fuzz->next(&r2); in FuzzRegionSetPath() 42 Fuzz fuzz(bytes); in LLVMFuzzerTestOneInput() local 43 FuzzRegionSetPath(&fuzz); in LLVMFuzzerTestOneInput()
|
/external/skqp/site/dev/testing/ |
D | fuzz.md | 7 All that is needed to reproduce a fuzz downloaded from ClusterFuzz, oss-fuzz or 10 out/ASAN/fuzz -b /path/to/downloaded/testcase 12 The fuzz binary will try its best to guess what the type/name should be based on 15 out/ASAN/fuzz -t filter_fuzz -b /path/to/downloaded/testcase 16 out/ASAN/fuzz -t api -n RasterN32Canvas -b /path/to/downloaded/testcase 20 out/ASAN/fuzz --help # will list all types 21 out/ASAN/fuzz -t api # will list all names
|
/external/skia/site/dev/testing/ |
D | fuzz.md | 7 All that is needed to reproduce a fuzz downloaded from ClusterFuzz, oss-fuzz or 10 out/ASAN/fuzz -b /path/to/downloaded/testcase 12 The fuzz binary will try its best to guess what the type/name should be based on 15 out/ASAN/fuzz -t filter_fuzz -b /path/to/downloaded/testcase 16 out/ASAN/fuzz -t api -n RasterN32Canvas -b /path/to/downloaded/testcase 20 out/ASAN/fuzz --help # will list all types 21 out/ASAN/fuzz -t api # will list all names
|