/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/openssh/regress/unittests/test_helper/ |
D | fuzz.c | 1 /* $OpenBSD: fuzz.c,v 1.8 2015/03/03 20:42:49 djm Exp $ */ 18 /* Utility functions/framework for fuzz tests */ 59 struct fuzz { struct 60 /* Fuzz method currently in use */ 63 /* Fuzz methods remaining */ 70 /* Current working copy of seed with fuzz mutations applied */ argument 73 /* Used by fuzz methods */ 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() [all …]
|
/external/skqp/fuzz/ |
D | FuzzCanvas.cpp | 8 #include "Fuzz.h" 92 inline T make_fuzz_t(Fuzz* fuzz) { in make_fuzz_t() argument 94 fuzz->next(&t); in make_fuzz_t() 98 static sk_sp<SkImage> make_fuzz_image(Fuzz*); 100 static SkBitmap make_fuzz_bitmap(Fuzz*); 102 static sk_sp<SkPicture> make_fuzz_picture(Fuzz*, int depth); 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() [all …]
|
D | FuzzDrawFunctions.cpp | 8 #include "Fuzz.h" 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() [all …]
|
D | FuzzCommon.cpp | 8 #include "Fuzz.h" 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() [all …]
|
D | FuzzPathop.cpp | 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() [all …]
|
D | FuzzParsePath.cpp | 8 #include "Fuzz.h" 14 // Most of this is taken from random_parse_path.cpp and adapted to use the Fuzz 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() [all …]
|
D | FuzzGradients.cpp | 8 #include "Fuzz.h" 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() [all …]
|
/external/skia/fuzz/ |
D | FuzzDrawFunctions.cpp | 8 #include "fuzz/Fuzz.h" 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() [all …]
|
D | FuzzCanvas.cpp | 8 #include "fuzz/Fuzz.h" 9 #include "fuzz/FuzzCommon.h" 77 inline T make_fuzz_t(Fuzz* fuzz) { in make_fuzz_t() argument 79 fuzz->next(&t); in make_fuzz_t() 83 static sk_sp<SkImage> make_fuzz_image(Fuzz*); 85 static sk_sp<SkPicture> make_fuzz_picture(Fuzz*, int depth); 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() [all …]
|
D | FuzzCommon.cpp | 8 #include "fuzz/Fuzz.h" 9 #include "fuzz/FuzzCommon.h" 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 [all …]
|
D | FuzzPathop.cpp | 8 #include "fuzz/Fuzz.h" 9 #include "fuzz/FuzzCommon.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, (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() [all …]
|
D | FuzzParsePath.cpp | 8 #include "fuzz/Fuzz.h" 14 // Most of this is taken from random_parse_path.cpp and adapted to use the Fuzz 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() [all …]
|
D | FuzzGradients.cpp | 8 #include "fuzz/Fuzz.h" 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() [all …]
|
D | FuzzCreateDDL.cpp | 19 #include "fuzz/Fuzz.h" 24 * The fuzzer aims to fuzz the use of SkDeferredDisplayList. It mainly consists of 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 [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 | 3 * Fuzz tests for key parsing 42 onerror(void *fuzz) in onerror() argument 44 fprintf(stderr, "Failed during fuzz:\n"); in onerror() 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() [all …]
|
/external/deqp-deps/SPIRV-Tools/source/fuzz/pass_management/ |
D | repeated_pass_instances.h | 18 #include "source/fuzz/fuzzer_pass_add_access_chains.h" 19 #include "source/fuzz/fuzzer_pass_add_bit_instruction_synonyms.h" 20 #include "source/fuzz/fuzzer_pass_add_composite_extract.h" 21 #include "source/fuzz/fuzzer_pass_add_composite_inserts.h" 22 #include "source/fuzz/fuzzer_pass_add_composite_types.h" 23 #include "source/fuzz/fuzzer_pass_add_copy_memory.h" 24 #include "source/fuzz/fuzzer_pass_add_dead_blocks.h" 25 #include "source/fuzz/fuzzer_pass_add_dead_breaks.h" 26 #include "source/fuzz/fuzzer_pass_add_dead_continues.h" 27 #include "source/fuzz/fuzzer_pass_add_equation_instructions.h" [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/pass_management/ |
D | repeated_pass_instances.h | 18 #include "source/fuzz/fuzzer_pass_add_access_chains.h" 19 #include "source/fuzz/fuzzer_pass_add_bit_instruction_synonyms.h" 20 #include "source/fuzz/fuzzer_pass_add_composite_extract.h" 21 #include "source/fuzz/fuzzer_pass_add_composite_inserts.h" 22 #include "source/fuzz/fuzzer_pass_add_composite_types.h" 23 #include "source/fuzz/fuzzer_pass_add_copy_memory.h" 24 #include "source/fuzz/fuzzer_pass_add_dead_blocks.h" 25 #include "source/fuzz/fuzzer_pass_add_dead_breaks.h" 26 #include "source/fuzz/fuzzer_pass_add_dead_continues.h" 27 #include "source/fuzz/fuzzer_pass_add_equation_instructions.h" [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | transformation.cpp | 15 #include "source/fuzz/transformation.h" 19 #include "source/fuzz/fuzzer_util.h" 20 #include "source/fuzz/transformation_access_chain.h" 21 #include "source/fuzz/transformation_add_bit_instruction_synonym.h" 22 #include "source/fuzz/transformation_add_constant_boolean.h" 23 #include "source/fuzz/transformation_add_constant_composite.h" 24 #include "source/fuzz/transformation_add_constant_null.h" 25 #include "source/fuzz/transformation_add_constant_scalar.h" 26 #include "source/fuzz/transformation_add_copy_memory.h" 27 #include "source/fuzz/transformation_add_dead_block.h" [all …]
|
D | fuzzer.cpp | 15 #include "source/fuzz/fuzzer.h" 22 #include "source/fuzz/fact_manager/fact_manager.h" 23 #include "source/fuzz/fuzzer_context.h" 24 #include "source/fuzz/fuzzer_pass_add_access_chains.h" 25 #include "source/fuzz/fuzzer_pass_add_bit_instruction_synonyms.h" 26 #include "source/fuzz/fuzzer_pass_add_composite_extract.h" 27 #include "source/fuzz/fuzzer_pass_add_composite_inserts.h" 28 #include "source/fuzz/fuzzer_pass_add_composite_types.h" 29 #include "source/fuzz/fuzzer_pass_add_copy_memory.h" 30 #include "source/fuzz/fuzzer_pass_add_dead_blocks.h" [all …]
|
/external/deqp-deps/SPIRV-Tools/source/fuzz/ |
D | transformation.cpp | 15 #include "source/fuzz/transformation.h" 19 #include "source/fuzz/fuzzer_util.h" 20 #include "source/fuzz/transformation_access_chain.h" 21 #include "source/fuzz/transformation_add_bit_instruction_synonym.h" 22 #include "source/fuzz/transformation_add_constant_boolean.h" 23 #include "source/fuzz/transformation_add_constant_composite.h" 24 #include "source/fuzz/transformation_add_constant_null.h" 25 #include "source/fuzz/transformation_add_constant_scalar.h" 26 #include "source/fuzz/transformation_add_copy_memory.h" 27 #include "source/fuzz/transformation_add_dead_block.h" [all …]
|
D | fuzzer.cpp | 15 #include "source/fuzz/fuzzer.h" 22 #include "source/fuzz/fact_manager/fact_manager.h" 23 #include "source/fuzz/fuzzer_context.h" 24 #include "source/fuzz/fuzzer_pass_add_access_chains.h" 25 #include "source/fuzz/fuzzer_pass_add_bit_instruction_synonyms.h" 26 #include "source/fuzz/fuzzer_pass_add_composite_extract.h" 27 #include "source/fuzz/fuzzer_pass_add_composite_inserts.h" 28 #include "source/fuzz/fuzzer_pass_add_composite_types.h" 29 #include "source/fuzz/fuzzer_pass_add_copy_memory.h" 30 #include "source/fuzz/fuzzer_pass_add_dead_blocks.h" [all …]
|
/external/oss-fuzz/docs/getting-started/new-project-guide/ |
D | rust_lang.md | 17 The process of integrating a project written in Rust with OSS-Fuzz is very 22 ## cargo-fuzz support 24 Rust integration with OSS-Fuzz is expected to use [`cargo 25 fuzz`](https://github.com/rust-fuzz/cargo-fuzz) to build fuzzers. The `cargo 26 fuzz` tool will build code with required compiler flags as well as link to the 27 correct libFuzzer on OSS-Fuzz itself. Note that using `cargo fuzz` also makes it 32 First you'll want to follow the [setup instructions for `cargo fuzz` 33 itself](https://rust-fuzz.github.io/book/). Afterwards your project should have: 35 * A top-level `fuzz` directory. 36 * A `fuzz/Cargo.toml` manifest which pulls in necessary dependencies to fuzz. [all …]
|
/external/libchrome/mojo/public/tools/fuzzers/ |
D | mojo_fuzzer_message_dump.cc | 14 #include "mojo/public/tools/fuzzers/fuzz.mojom.h" 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() 82 struct_map["fuzz"] = std::move(in); 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() [all …]
|