Home
last modified time | relevance | path

Searched refs:fuzz (Results 1 – 25 of 127) sorted by relevance

123456

/openbsd-src/regress/sbin/iked/test_helper/
H A Dfuzz.c51 struct fuzz { struct
95 fuzz_dump(struct fuzz *fuzz) in fuzz_dump() argument
97 u_char *p = fuzz_ptr(fuzz); in fuzz_dump()
98 size_t i, j, len = fuzz_len(fuzz); in fuzz_dump()
100 switch (fuzz->strategy) { in fuzz_dump()
103 fuzz_ntop(fuzz->strategy), in fuzz_dump()
104 fuzz->o1, fuzz->slen * 8, fuzz->o1); in fuzz_dump()
108 fuzz_ntop(fuzz->strategy), in fuzz_dump()
109 (((fuzz_ullong)fuzz->o2) * fuzz->slen * 8) + fuzz->o1, in fuzz_dump()
110 ((fuzz_ullong)fuzz->slen * 8) * fuzz->slen * 8, in fuzz_dump()
[all …]
H A Dtest_helper.h245 struct fuzz;
256 struct fuzz *fuzz_begin(u_int strategies, void *p, size_t l);
259 void fuzz_cleanup(struct fuzz *fuzz);
262 void fuzz_next(struct fuzz *fuzz);
265 int fuzz_done(struct fuzz *fuzz);
268 size_t fuzz_len(struct fuzz *fuzz);
269 u_char *fuzz_ptr(struct fuzz *fuzz);
272 void fuzz_dump(struct fuzz *fuzz);
/openbsd-src/regress/usr.bin/ssh/unittests/test_helper/
H A Dfuzz.c55 struct fuzz { struct
99 fuzz_fmt(struct fuzz *fuzz, char *s, size_t n) in fuzz_fmt() argument
101 if (fuzz == NULL) in fuzz_fmt()
104 switch (fuzz->strategy) { in fuzz_fmt()
107 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
108 fuzz->o1, fuzz->slen * 8, fuzz->o1); in fuzz_fmt()
112 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
113 (((fuzz_ullong)fuzz->o2) * fuzz->slen * 8) + fuzz->o1, in fuzz_fmt()
114 ((fuzz_ullong)fuzz->slen * 8) * fuzz->slen * 8, in fuzz_fmt()
115 fuzz->o1, fuzz->o2); in fuzz_fmt()
[all …]
H A Dtest_helper.h282 struct fuzz;
293 struct fuzz *fuzz_begin(u_int strategies, const void *p, size_t l);
296 void fuzz_cleanup(struct fuzz *fuzz);
299 void fuzz_next(struct fuzz *fuzz);
306 int fuzz_matches_original(struct fuzz *fuzz);
309 int fuzz_done(struct fuzz *fuzz);
312 size_t fuzz_len(struct fuzz *fuzz);
313 u_char *fuzz_ptr(struct fuzz *fuzz);
316 void fuzz_dump(struct fuzz *fuzz);
/openbsd-src/regress/usr.bin/ssh/unittests/sshkey/
H A Dtest_fuzz.c35 onerror(void *fuzz) in onerror() argument
38 fuzz_dump((struct fuzz *)fuzz); in onerror()
46 struct fuzz *fuzz; in public_fuzz() local
56 fuzz = fuzz_begin(fuzzers, sshbuf_mutable_ptr(buf), sshbuf_len(buf)); in public_fuzz()
61 TEST_ONERROR(onerror, fuzz); in public_fuzz()
62 for(; !fuzz_done(fuzz); fuzz_next(fuzz)) { in public_fuzz()
63 if (sshkey_from_blob(fuzz_ptr(fuzz), fuzz_len(fuzz), &k1) == 0) in public_fuzz()
66 fuzz_cleanup(fuzz); in public_fuzz()
72 struct fuzz *fuzz; in sig_fuzz() local
86 fuzz = fuzz_begin(fuzzers, sig, l); in sig_fuzz()
[all …]
/openbsd-src/regress/sbin/iked/parser/
H A Dtest_parser_fuzz.c445 perform_test(struct fuzz *fuzz) in perform_test() argument
454 for (; !fuzz_done(fuzz); fuzz_next(fuzz)) { in perform_test()
455 ASSERT_PTR_NE(fuzzed = ibuf_new(fuzz_ptr(fuzz), fuzz_len(fuzz)), in perform_test()
477 struct fuzz *fuzz; in parser_fuzz_tests() local
493 fuzz = fuzz_begin(FUZZ_1_BIT_FLIP | FUZZ_2_BIT_FLIP | in parser_fuzz_tests()
499 perform_test(fuzz); in parser_fuzz_tests()
512 fuzz = fuzz_begin(FUZZ_1_BIT_FLIP | FUZZ_2_BIT_FLIP | in parser_fuzz_tests()
518 perform_test(fuzz); in parser_fuzz_tests()
531 fuzz = fuzz_begin(FUZZ_1_BIT_FLIP | FUZZ_2_BIT_FLIP | in parser_fuzz_tests()
537 perform_test(fuzz); in parser_fuzz_tests()
[all …]
/openbsd-src/regress/usr.bin/ssh/unittests/sshbuf/
H A Dtest_sshbuf_getput_fuzz.c60 onerror(void *fuzz) in onerror() argument
63 fuzz_dump((struct fuzz *)fuzz); in onerror()
99 struct fuzz *fuzz; in sshbuf_getput_fuzz_tests() local
108 fuzz = fuzz_begin(fuzzers, blob, sizeof(blob)); in sshbuf_getput_fuzz_tests()
109 TEST_ONERROR(onerror, fuzz); in sshbuf_getput_fuzz_tests()
110 for(; !fuzz_done(fuzz); fuzz_next(fuzz)) in sshbuf_getput_fuzz_tests()
112 fuzz_cleanup(fuzz); in sshbuf_getput_fuzz_tests()
/netbsd-src/crypto/external/bsd/openssl/dist/fuzz/
H A DREADME.md9 How to fuzz OpenSSL with [libfuzzer](http://llvm.org/docs/LibFuzzer.html),
25 CC=clang ./config enable-fuzz-libfuzzer \
43 fuzz/helper.py $FUZZER
45 where $FUZZER is one of the executables in `fuzz/`.
49 `fuzz/corpora/$FUZZER-crash/`.
62 CC=clang ./config enable-fuzz-libfuzzer \
81 CC=afl-clang-fast ./config enable-fuzz-afl no-shared no-module \
93 afl-fuzz -i fuzz/corpora/$FUZZER -o fuzz/corpora/$FUZZER/out fuzz/$FUZZER
95 Where $FUZZER is one of the executables in `fuzz/`.
101 the fuzz/*-test binaries and the file generated by the fuzzer. They binaries
[all …]
/netbsd-src/external/lgpl3/mpc/dist/tests/
H A Dteta.c68 mpfr_t fuzz; in test_eta() local
76 mpfr_init2 (fuzz, 2*p); in test_eta()
94 mpfr_set_ui (fuzz, 1, MPFR_RNDN); in test_eta()
95 mpfr_div_ui (fuzz, fuzz, 10, MPFR_RNDN); in test_eta()
96 mpfr_add (mpc_realref (j->c), mpc_realref (j->c), fuzz, MPFR_RNDN); in test_eta()
97 mpfr_add (mpc_imagref (j->c), mpc_imagref (j->c), fuzz, MPFR_RNDN); in test_eta()
121 mpfr_add (mpc_realref (j->c), mpc_realref (j->c), fuzz, MPFR_RNDN); in test_eta()
122 mpfr_add (mpc_imagref (j->c), mpc_imagref (j->c), fuzz, MPFR_RNDN); in test_eta()
138 mpfr_clear (fuzz); in test_eta()
/netbsd-src/crypto/external/bsd/openssl.old/dist/fuzz/
H A DREADME.md6 Or, how to fuzz OpenSSL with [libfuzzer](http://llvm.org/docs/LibFuzzer.html).
38 $ CC=clang ./config enable-fuzz-libfuzzer \
50 $ fuzz/helper.py $FUZZER
52 Where $FUZZER is one of the executables in `fuzz/`.
55 `fuzz/corpora/$FUZZER-crash/`.
63 $ CC=afl-clang-fast ./config enable-fuzz-afl no-shared -DPEDANTIC \
74 $ afl-fuzz -i fuzz/corpora/$FUZZER -o fuzz/corpora/$FUZZER/out fuzz/$FUZZER
76 Where $FUZZER is one of the executables in `fuzz/`.
82 the fuzz/*-test binaries and the file generated by the fuzzer. They binaries
84 config with enable-fuzz-* or -fsanitize-coverage, but some of the other options
[all …]
/netbsd-src/external/bsd/libfido2/dist/fuzz/
H A Dsummary.txt3 fuzz/clock.c 24 1 95.83% 4 …
4 fuzz/pcsc.c 59 0 100.00% 8 …
5 fuzz/prng.c 31 0 100.00% 2 …
6 fuzz/udev.c 110 2 98.18% 17 …
7 fuzz/uniform_random.c 7 1 85.71% 1 …
8 fuzz/wrap.c 23 0 100.00% 3 …
55 fuzz/mutator_aux.h 0 0 - 0 …
H A DMakefile27 tar Ccf .. - src fuzz | docker exec -i ${RUNNER} tar Cxf /libfido2 -
32 docker exec ${RUNNER} tar Czxf /libfido2/fuzz /libfido2/fuzz/corpus.tgz
79 fetch-oss-fuzz: ${CORPORA}
90 .PHONY: fetch-oss-fuzz fetch-franz corpus.tgz
/openbsd-src/regress/usr.bin/gzip/
H A DMakefile59 REGRESS_TARGETS+= run-regress-fuzz
60 run-regress-fuzz:
65 dd if=rc.gz bs=1k of=fuzz.gz status=none
67 where=$$((RANDOM % 2048 + 256)); fuzz=$$((RANDOM % 256));\
70 echo "$i/100: fuzzing byte @$$where: $$orig -> $$fuzz";\
71 echo -n \\0`printf "%o" $$fuzz` |\
72 dd bs=1 seek=$$where conv=notrunc of=fuzz.gz status=none
73 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz
/netbsd-src/usr.bin/patch/
H A Dpatch.c157 LINENUM where = 0, newwhere, fuzz, mymaxfuzz; in main() local
256 fuzz = 0; in main()
262 where = locate_hunk(fuzz); in main()
266 if (fuzz == 0) in main()
272 where = locate_hunk(fuzz); in main()
310 ++fuzz <= mymaxfuzz); in main()
339 if (fuzz != 0) in main()
340 say(" with fuzz %ld", fuzz); in main()
654 locate_hunk(LINENUM fuzz) in locate_hunk() argument
663 if (verbose && fuzz == 0 && (diff_type == CONTEXT_DIFF in locate_hunk()
[all …]
/openbsd-src/usr.bin/patch/
H A Dpatch.c151 LINENUM where = 0, newwhere, fuzz, mymaxfuzz; in main() local
308 fuzz = 0; in main()
314 where = locate_hunk(fuzz); in main()
319 if (fuzz == 0) in main()
325 where = locate_hunk(fuzz); in main()
365 ++fuzz <= mymaxfuzz); in main()
390 if (fuzz != 0) in main()
391 say(" with fuzz %ld", fuzz); in main()
524 {"fuzz", required_argumen in get_some_switches()
693 locate_hunk(LINENUM fuzz) locate_hunk() argument
1061 patch_match(LINENUM base,LINENUM offset,LINENUM fuzz) patch_match() argument
[all...]
/netbsd-src/external/lgpl3/mpc/dist/src/
H A Deta.c282 mpc_t fuzz; in mpc_eta_fund() local
284 mpc_init2 (fuzz, prec); in mpc_eta_fund()
286 mpc_set_ui_ui (fuzz, 0, 1, MPC_RNDNN); in mpc_eta_fund()
287 mpc_div_ui (fuzz, fuzz, 10, MPC_RNDNN); in mpc_eta_fund()
288 mpcb_set_c (fuzzb, fuzz, prec, 0, 1); in mpc_eta_fund()
292 mpc_clear (fuzz); in mpc_eta_fund()
/netbsd-src/external/bsd/libfido2/dist/src/
H A DCMakeLists.txt46 list(APPEND FIDO_SOURCES ../fuzz/clock.c)
47 list(APPEND FIDO_SOURCES ../fuzz/pcsc.c)
48 list(APPEND FIDO_SOURCES ../fuzz/prng.c)
49 list(APPEND FIDO_SOURCES ../fuzz/udev.c)
50 list(APPEND FIDO_SOURCES ../fuzz/uniform_random.c)
51 list(APPEND FIDO_SOURCES ../fuzz/wrap.c)
/netbsd-src/external/apache2/llvm/dist/llvm/docs/
H A DFuzzingLLVM.rst28 __ https://bugs.chromium.org/p/oss-fuzz/issues/list?q=proj-llvm+clang-fuzzer
37 For example, the following command will fuzz clang with a higher optimization
53 __ https://bugs.chromium.org/p/oss-fuzz/issues/list?q=proj-llvm+clang-format-fuzzer
70 __ https://bugs.chromium.org/p/oss-fuzz/issues/list?q=proj-llvm+llvm-dwarfdump-fuzzer
76 fuzzed __cxa_demangle to death, why not fuzz LLVM's implementation of the same
86 the following command would fuzz AArch64 with :doc:`GlobalISel/index`:
136 example, to fuzz the AArch64 assembler you might use the following command:
165 The inputs for a fuzz target are generated via random mutations of a
217 The ``FuzzMutate`` library is used to structurally fuzz backends in
257 .. _OSS Fuzz: https://github.com/google/oss-fuzz
[all …]
/openbsd-src/gnu/llvm/llvm/docs/
H A DFuzzingLLVM.rst28 __ https://bugs.chromium.org/p/oss-fuzz/issues/list?q=proj-llvm+clang-fuzzer
37 For example, the following command will fuzz clang with a higher optimization
53 __ https://bugs.chromium.org/p/oss-fuzz/issues/list?q=proj-llvm+clang-format-fuzzer
70 __ https://bugs.chromium.org/p/oss-fuzz/issues/list?q=proj-llvm+llvm-dwarfdump-fuzzer
76 fuzzed __cxa_demangle to death, why not fuzz LLVM's implementation of the same
86 the following command would fuzz AArch64 with :doc:`GlobalISel/index`:
136 example, to fuzz the AArch64 assembler you might use the following command:
170 The inputs for a fuzz target are generated via random mutations of a
222 The ``FuzzMutate`` library is used to structurally fuzz backends in
262 .. _OSS Fuzz: https://github.com/google/oss-fuzz
[all …]
/openbsd-src/gnu/llvm/lldb/docs/resources/
H A Dfuzzing.rst7 LLDB has fuzzers that provide automated `fuzz testing <https://en.wikipedia.org/wiki/Fuzzing>`_ for…
37 …egrate the LLDB fuzzers into the `OSS Fuzz <https://github.com/google/oss-fuzz>`_ project for cont…
58 $ ninja fuzz-lldb-target
59 $ ninja fuzz-lldb-commandinterpreter
60 $ ninja fuzz-lldb-expression
/openbsd-src/gnu/usr.bin/perl/ext/SDBM_File/t/
H A Dcorrupt.t93 fuzz failure 54
113 fuzz failure 181
133 fuzz failure 695
/netbsd-src/external/mit/libcbor/dist/test/
H A Dfuzz_test.c65 static void fuzz(void **state) { in fuzz() function
85 const struct CMUnitTest tests[] = {cmocka_unit_test(fuzz)}; in main()
/netbsd-src/external/mit/expat/dist/
H A DMakefile.am94 fuzz/xml_parsebuffer_fuzzer.c \
95 fuzz/xml_parse_fuzzer.c \
/netbsd-src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/
H A Dam3517-som.dtsi135 touchscreen-fuzz-x = <4>;
136 touchscreen-fuzz-y = <7>;
137 touchscreen-fuzz-pressure = <2>;
/netbsd-src/external/bsd/unbound/dist/
H A DREADME.md5 …Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/unbound.svg)](https://bu…

123456