Searched refs:fuzz (Results 1 - 16 of 16) sorted by relevance

/openbsd-current/regress/usr.bin/ssh/unittests/test_helper/
H A Dfuzz.c1 /* $OpenBSD: fuzz.c,v 1.8 2015/03/03 20:42:49 djm Exp $ */
18 /* Utility functions/framework for fuzz tests */
55 struct fuzz { struct
66 /* Current working copy of seed with fuzz mutations applied */
69 /* Used by fuzz methods */
99 fuzz_fmt(struct fuzz *fuzz, char *s, size_t n) argument
101 if (fuzz == NULL)
104 switch (fuzz->strategy) {
107 fuzz_ntop(fuzz
180 fuzz_dump(struct fuzz *fuzz) argument
241 fuzz_cleanup(struct fuzz *fuzz) argument
257 fuzz_strategy_done(struct fuzz *fuzz) argument
280 fuzz_next(struct fuzz *fuzz) argument
377 fuzz_matches_original(struct fuzz *fuzz) argument
385 fuzz_done(struct fuzz *fuzz) argument
394 fuzz_len(struct fuzz *fuzz) argument
414 fuzz_ptr(struct fuzz *fuzz) argument
[all...]
H A DMakefile4 SRCS= test_helper.c fuzz.c
H A Dtest_helper.h282 struct fuzz;
293 struct fuzz *fuzz_begin(u_int strategies, const void *p, size_t l);
295 /* Free a fuzz context */
296 void fuzz_cleanup(struct fuzz *fuzz);
298 /* Prepare the next fuzz case in the series */
299 void fuzz_next(struct fuzz *fuzz);
302 * Check whether this fuzz case is identical to the original
306 int fuzz_matches_original(struct fuzz *fuz
[all...]
/openbsd-current/regress/sbin/iked/test_helper/
H A Dfuzz.c18 /* Utility functions/framework for fuzz tests */
51 struct fuzz { struct
62 /* Current working copy of seed with fuzz mutations applied */
65 /* Used by fuzz methods */
95 fuzz_dump(struct fuzz *fuzz) argument
97 u_char *p = fuzz_ptr(fuzz);
98 size_t i, j, len = fuzz_len(fuzz);
100 switch (fuzz->strategy) {
103 fuzz_ntop(fuzz
192 fuzz_cleanup(struct fuzz *fuzz) argument
204 fuzz_strategy_done(struct fuzz *fuzz) argument
227 fuzz_next(struct fuzz *fuzz) argument
324 fuzz_done(struct fuzz *fuzz) argument
333 fuzz_len(struct fuzz *fuzz) argument
353 fuzz_ptr(struct fuzz *fuzz) argument
[all...]
H A DMakefile4 SRCS= test_helper.c fuzz.c
H A Dtest_helper.h245 struct fuzz;
256 struct fuzz *fuzz_begin(u_int strategies, void *p, size_t l);
258 /* Free a fuzz context */
259 void fuzz_cleanup(struct fuzz *fuzz);
261 /* Prepare the next fuzz case in the series */
262 void fuzz_next(struct fuzz *fuzz);
264 /* Determine whether the current fuzz sequence is exhausted (nonzero = yes) */
265 int fuzz_done(struct fuzz *fuz
[all...]
/openbsd-current/regress/usr.bin/ssh/unittests/sshkey/
H A Dtest_fuzz.c35 onerror(void *fuzz) argument
37 fprintf(stderr, "Failed during fuzz:\n");
38 fuzz_dump((struct fuzz *)fuzz);
46 struct fuzz *fuzz; local
56 fuzz = fuzz_begin(fuzzers, sshbuf_mutable_ptr(buf), sshbuf_len(buf));
61 TEST_ONERROR(onerror, fuzz);
62 for(; !fuzz_done(fuzz); fuzz_next(fuzz)) {
72 struct fuzz *fuzz; local
107 struct fuzz *fuzz; local
[all...]
/openbsd-current/regress/usr.bin/ssh/unittests/sshbuf/
H A Dtest_sshbuf_getput_fuzz.c60 onerror(void *fuzz) argument
62 fprintf(stderr, "Failed during fuzz:\n");
63 fuzz_dump((struct fuzz *)fuzz);
99 struct fuzz *fuzz; local
107 TEST_START("fuzz blob parsing");
108 fuzz = fuzz_begin(fuzzers, blob, sizeof(blob));
109 TEST_ONERROR(onerror, fuzz);
110 for(; !fuzz_done(fuzz); fuzz_nex
[all...]
/openbsd-current/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
/openbsd-current/gnu/usr.bin/perl/ext/SDBM_File/t/
H A Dcorrupt.t93 fuzz failure 54
113 fuzz failure 181
133 fuzz failure 695
/openbsd-current/regress/sbin/iked/parser/
H A Dtest_parser_fuzz.c445 perform_test(struct fuzz *fuzz) argument
454 for (; !fuzz_done(fuzz); fuzz_next(fuzz)) {
455 ASSERT_PTR_NE(fuzzed = ibuf_new(fuzz_ptr(fuzz), fuzz_len(fuzz)),
477 struct fuzz *fuzz; local
485 TEST_START("fuzz generic header");
493 fuzz
[all...]
/openbsd-current/usr.bin/patch/
H A Dpatch.c151 LINENUM where = 0, newwhere, fuzz, mymaxfuzz; local
308 fuzz = 0;
314 where = locate_hunk(fuzz);
319 if (fuzz == 0)
325 where = locate_hunk(fuzz);
365 ++fuzz <= mymaxfuzz);
390 if (fuzz != 0)
391 say(" with fuzz %ld", fuzz);
524 {"fuzz", required_argumen
693 locate_hunk(LINENUM fuzz) argument
1061 patch_match(LINENUM base, LINENUM offset, LINENUM fuzz) argument
[all...]
/openbsd-current/regress/usr.bin/mandoc/db/dbm_dump/
H A Ddbm_dump.c236 pchk(const char *want, const char **got, const char *name, int fuzz) argument
245 else if (*got > want || *got + fuzz < want)
/openbsd-current/gnu/llvm/libcxx/utils/ci/
H A Drun-buildbot190 libcxxabi/{fuzz,include,src,test} \
/openbsd-current/gnu/gcc/gcc/
H A Dfinal.c614 int fuzz = 0;
628 fuzz += (-align_addr ^ growth) & (new_align - known_align);
631 return fuzz;
610 int fuzz = 0; local
/openbsd-current/gnu/usr.bin/gcc/gcc/
H A Dfinal.c867 int fuzz = 0;
881 fuzz += (-align_addr ^ growth) & (new_align - known_align);
884 return fuzz;
863 int fuzz = 0; local

Completed in 151 milliseconds