/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/libxml2/ |
D | Android.bp | 211 "fuzz/genSeed.c", 212 "fuzz/fuzz.c", 221 name: "libxml2-fuzz-defaults", 227 "fuzz/fuzz.c", 236 defaults: ["libxml2-fuzz-defaults"], 238 "fuzz/regexp.c", 240 dictionary: "fuzz/regexp.dict", 254 cmd: "mkdir -p $(genDir)/fuzz/seed/schema && " + 256 "cd $(genDir)/fuzz && " + 260 "fuzz/seed/schema/570702_0.xsd", [all …]
|
/external/skia/fuzz/ |
D | FuzzCanvas.cpp | 77 inline T make_fuzz_t(Fuzz* fuzz) { in make_fuzz_t() argument 79 fuzz->next(&t); in make_fuzz_t() 87 static sk_sp<SkColorFilter> make_fuzz_colorfilter(Fuzz* fuzz, int depth) { in make_fuzz_colorfilter() argument 92 fuzz->nextRange(&colorFilterType, 0, 8); in make_fuzz_colorfilter() 99 fuzz->next(&color); in make_fuzz_colorfilter() 100 fuzz->nextEnum(&mode, SkBlendMode::kLastMode); in make_fuzz_colorfilter() 104 sk_sp<SkColorFilter> outer = make_fuzz_colorfilter(fuzz, depth - 1); in make_fuzz_colorfilter() 108 sk_sp<SkColorFilter> inner = make_fuzz_colorfilter(fuzz, depth - 1); in make_fuzz_colorfilter() 114 fuzz->nextN(array, SK_ARRAY_COUNT(array)); in make_fuzz_colorfilter() 119 fuzz->next(&mul, &add); in make_fuzz_colorfilter() [all …]
|
D | FuzzDrawFunctions.cpp | 26 static void init_string(Fuzz* fuzz, char* str, size_t bufSize) { in init_string() argument 28 fuzz->nextRange(&str[i], 0x20, 0x7E); // printable ASCII in init_string() 34 static void init_paint(Fuzz* fuzz, SkPaint* p) { in init_paint() argument 36 fuzz->next(&b); in init_paint() 40 fuzz->nextRange(&tmp_u8, 0, (int)SkBlendMode::kLastMode); in init_paint() 44 fuzz->next(&co); in init_paint() 47 fuzz->next(&b); in init_paint() 50 fuzz->nextRange(&tmp_u8, 0, (int)SkPaint::kLast_Cap); in init_paint() 53 fuzz->nextRange(&tmp_u8, 0, (int)SkPaint::kLast_Join); in init_paint() 57 fuzz->next(&sc); 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)SkPathFillType::kInverseEvenOdd); 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, (int)SkPathFillType::kInverseEvenOdd); 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, (int)SkPathFillType::kInverseEvenOdd); 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 | FuzzSkParagraph.cpp | 114 uint8_t RandomText(T* buffer, Fuzz* fuzz) { in RandomText() argument 116 fuzz->nextRange(&text_length, 0, MAX_TEXT_LENGTH); in RandomText() 117 fuzz->nextN(buffer, text_length); in RandomText() 122 void AddASCIIText(ParagraphBuilder* builder,Fuzz* fuzz) { in AddASCIIText() argument 124 const auto text_length = RandomText(text, fuzz); in AddASCIIText() 128 void AddUnicodeText(ParagraphBuilder* builder,Fuzz* fuzz) { in AddUnicodeText() argument 130 const auto text_length = RandomText(text, fuzz); in AddUnicodeText() 139 void AddZalgoText(ParagraphBuilder* builder, Fuzz* fuzz) { in AddZalgoText() argument 141 const auto text_length = RandomText(text, fuzz); in AddZalgoText() 147 fuzz->next(&mark_count); in AddZalgoText() [all …]
|
D | FuzzCreateDDL.cpp | 39 static SkSurfaceProps gen_fuzzed_surface_props(Fuzz* fuzz) { in gen_fuzzed_surface_props() argument 41 fuzz->nextEnum(&pixel, kBGR_V_SkPixelGeometry); in gen_fuzzed_surface_props() 45 static SkPaint gen_fuzzed_skpaint(Fuzz* fuzz) { in gen_fuzzed_skpaint() argument 47 fuzz->nextRange(&R, -1, 2); in gen_fuzzed_skpaint() 48 fuzz->nextRange(&G, -1, 2); in gen_fuzzed_skpaint() 49 fuzz->nextRange(&B, -1, 2); in gen_fuzzed_skpaint() 50 fuzz->nextRange(&Alpha, 0, 1); in gen_fuzzed_skpaint() 55 static SkImageInfo gen_fuzzed_imageinfo(Fuzz* fuzz, SkColorType surfaceType) { in gen_fuzzed_imageinfo() argument 57 fuzz->nextRange(&width, 1, kMaxWidth); in gen_fuzzed_imageinfo() 58 fuzz->nextRange(&height, 1, kMaxHeight); in gen_fuzzed_imageinfo() [all …]
|
D | FuzzGradients.cpp | 22 void makeMatrix(Fuzz* fuzz, SkMatrix* m) { in makeMatrix() argument 24 fuzz->nextN(mat, 9); in makeMatrix() 28 void initGradientParams(Fuzz* fuzz, std::vector<SkColor>* colors, in initGradientParams() argument 31 fuzz->nextRange(&count, 0, MAX_COUNT); in initGradientParams() 36 fuzz->nextRange(&m, 0, 2); in initGradientParams() 44 fuzz->next(&c, &s); in initGradientParams() 108 void fuzzLinearGradient(Fuzz* fuzz) { in fuzzLinearGradient() argument 110 fuzz->next(&pts[0].fX, &pts[0].fY, &pts[1].fX, &pts[1].fY); in fuzzLinearGradient() 112 fuzz->next(&useLocalMatrix, &useGlobalMatrix); in fuzzLinearGradient() 117 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/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/angle/third_party/vulkan-deps/spirv-tools/src/ |
D | BUILD.gn | 880 # The spirv-fuzz library is only built when in a Chromium checkout 884 sources = [ "source/fuzz/protobufs/spvtoolsfuzz.proto" ] 891 "source/fuzz/added_function_reducer.cpp", 892 "source/fuzz/added_function_reducer.h", 893 "source/fuzz/available_instructions.cpp", 894 "source/fuzz/available_instructions.h", 895 "source/fuzz/call_graph.cpp", 896 "source/fuzz/call_graph.h", 897 "source/fuzz/comparator_deep_blocks_first.h", 898 "source/fuzz/counter_overflow_id_source.cpp", [all …]
|
/external/brotli/ |
D | Android.bp | 123 cmd: "mkdir -p $(genDir)/c/fuzz && " + 124 "unzip -q $(in) -d $(genDir)/c/fuzz", 126 "c/fuzz/04bdd9f35a2881027adddb039026623cd2e86664", 127 "c/fuzz/04dc2c1dc1f4612d4dc4892f4444983f2064c252", 128 "c/fuzz/05a79f06cf3f67f726dae68d18a2290f6c9a50c9", 129 "c/fuzz/05b3606442abab241ede01c3b34d1d73afc580d1", 130 "c/fuzz/065977e9fc84bab81eada79880b4481fece00616", 131 "c/fuzz/08e61f98cc5e260e8d9b853bf9d5c1d9c7a9fc4d", 132 "c/fuzz/155b07e636d98a80a53e667caef9e11370cef995", 133 "c/fuzz/2ad192eab5c0f6e50f0c64777811ae9111bad918", [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 63 fuzz = fuzz_begin(fuzzers, sshbuf_mutable_ptr(buf), sshbuf_len(buf)); in public_fuzz() 68 TEST_ONERROR(onerror, fuzz); in public_fuzz() 69 for(; !fuzz_done(fuzz); fuzz_next(fuzz)) { in public_fuzz() 70 if (sshkey_from_blob(fuzz_ptr(fuzz), fuzz_len(fuzz), &k1) == 0) in public_fuzz() 73 fuzz_cleanup(fuzz); in public_fuzz() 79 struct fuzz *fuzz; in sig_fuzz() local 93 fuzz = fuzz_begin(fuzzers, sig, l); in sig_fuzz() [all …]
|
/external/oss-fuzz/projects/mbedtls/ |
D | build.sh | 25 cp programs/fuzz/fuzz_* $OUT/ 29 cp -r ../../openssl/fuzz/corpora/crl fuzz/corpuses/ 30 cp -r ../../openssl/fuzz/corpora/x509 fuzz/corpuses/ 31 cp -r ../../boringssl/fuzz/privkey_corpus fuzz/corpuses/ 32 cp ../../boringssl/fuzz/cert_corpus/* fuzz/corpuses/x509/ 33 zip -r fuzz/fuzz_x509crl_seed_corpus.zip ../tests/data_files/crl* fuzz/corpuses/crl 34 zip -r fuzz/fuzz_x509crt_seed_corpus.zip ../tests/data_files/*.crt ../tests/data_files/dir*/*.crt … 35 zip -r fuzz/fuzz_x509csr_seed_corpus.zip ../tests/data_files/*.csr ../tests/data_files/*.req.* 36 zip -r fuzz/fuzz_privkey_seed_corpus.zip ../tests/data_files/*.key ../tests/data_files/*.pem fuzz/c… 37 zip -r fuzz/fuzz_pubkey_seed_corpus.zip ../tests/data_files/*.pub ../tests/data_files/*.pubkey [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 …]
|
/external/oss-fuzz/projects/qpid-proton/ |
D | build.sh | 21 pushd c/tests/fuzz/ 24 cp c/tests/fuzz/{fuzz-connection-driver,fuzz-message-decode} $OUT/ 27 zip -j $OUT/fuzz-connection-driver_seed_corpus.zip c/tests/fuzz/fuzz-connection-driver/corpus/* c/t… 28 zip -j $OUT/fuzz-message-decode_seed_corpus.zip c/tests/fuzz/fuzz-message-decode/corpus/* c/tests/f…
|
/external/oss-fuzz/projects/qubes-os/ |
D | build.sh | 21 make -C fuzz 22 cp fuzz/*_fuzzer $OUT/ 23 cp fuzz/*_seed_corpus.zip $OUT/ 24 cp fuzz/*.options $OUT/ 29 make -C fuzz 30 cp fuzz/*_fuzzer $OUT/ 31 cp fuzz/*_seed_corpus.zip $OUT/ 32 cp fuzz/*.options $OUT/ 36 make -C fuzz 37 cp fuzz/*_fuzzer $OUT/ [all …]
|