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

/freebsd-13-stable/crypto/openssh/regress/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 */
59 struct fuzz { struct
70 /* Current working copy of seed with fuzz mutations applied */
73 /* Used by fuzz methods */
103 fuzz_fmt(struct fuzz *fuzz, char *s, size_t n) argument
105 if (fuzz == NULL)
108 switch (fuzz->strategy) {
111 fuzz_ntop(fuzz
184 fuzz_dump(struct fuzz *fuzz) argument
244 fuzz_cleanup(struct fuzz *fuzz) argument
261 fuzz_strategy_done(struct fuzz *fuzz) argument
284 fuzz_next(struct fuzz *fuzz) argument
381 fuzz_matches_original(struct fuzz *fuzz) argument
389 fuzz_done(struct fuzz *fuzz) argument
398 fuzz_len(struct fuzz *fuzz) argument
418 fuzz_ptr(struct fuzz *fuzz) argument
[all...]
H A DMakefile4 SRCS= test_helper.c fuzz.c
H A Dtest_helper.h284 struct fuzz;
295 struct fuzz *fuzz_begin(u_int strategies, const void *p, size_t l);
297 /* Free a fuzz context */
298 void fuzz_cleanup(struct fuzz *fuzz);
300 /* Prepare the next fuzz case in the series */
301 void fuzz_next(struct fuzz *fuzz);
304 * Check whether this fuzz case is identical to the original
308 int fuzz_matches_original(struct fuzz *fuz
[all...]
/freebsd-13-stable/crypto/openssh/regress/unittests/sshkey/
H A Dtest_fuzz.c42 onerror(void *fuzz) argument
44 fprintf(stderr, "Failed during fuzz:\n");
45 fuzz_dump((struct fuzz *)fuzz);
53 struct fuzz *fuzz; local
58 fuzz = fuzz_begin(FUZZ_1_BIT_FLIP | /* XXX too slow FUZZ_2_BIT_FLIP | */
66 TEST_ONERROR(onerror, fuzz);
67 for(; !fuzz_done(fuzz); fuzz_next(fuzz)) {
77 struct fuzz *fuzz; local
104 struct fuzz *fuzz; local
[all...]
/freebsd-13-stable/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_getput_fuzz.c74 onerror(void *fuzz) argument
76 fprintf(stderr, "Failed during fuzz:\n");
77 fuzz_dump((struct fuzz *)fuzz);
117 struct fuzz *fuzz; local
119 TEST_START("fuzz blob parsing");
120 fuzz = fuzz_begin(FUZZ_1_BIT_FLIP | FUZZ_2_BIT_FLIP |
123 TEST_ONERROR(onerror, fuzz);
124 for(; !fuzz_done(fuzz); fuzz_nex
[all...]
/freebsd-13-stable/usr.bin/patch/
H A Dpatch.c156 LINENUM where = 0, newwhere, fuzz, mymaxfuzz; local
282 fuzz = 0;
305 where = locate_hunk(fuzz);
309 if (fuzz == 0)
315 where = locate_hunk(fuzz);
353 ++fuzz <= mymaxfuzz);
382 if (fuzz != 0)
383 say(" with fuzz %ld", fuzz);
534 {"fuzz", required_argumen
703 locate_hunk(LINENUM fuzz) argument
1076 patch_match(LINENUM base, LINENUM offset, LINENUM fuzz) argument
[all...]
/freebsd-13-stable/contrib/subversion/subversion/libsvn_client/
H A Dpatch.c69 /* The fuzz factor used when matching this hunk, i.e. how many
1564 svn_diff_hunk_t *hunk, svn_linenum_t fuzz,
1587 if (fuzz_penalty > fuzz)
1590 fuzz -= fuzz_penalty;
1640 if ((lines_read <= fuzz && leading_context > fuzz) ||
1641 (lines_read > hunk_length - fuzz && trailing_context > fuzz))
1670 * up to but not including the specified UPPER_LINE. Use fuzz factor FUZZ.
1687 svn_linenum_t upper_line, svn_linenum_t fuzz,
1562 match_hunk(svn_boolean_t *matched, target_content_t *content, svn_diff_hunk_t *hunk, svn_linenum_t fuzz, svn_boolean_t ignore_whitespace, svn_boolean_t match_modified, apr_pool_t *pool) argument
1683 scan_for_match(svn_linenum_t *matched_line, target_content_t *content, svn_diff_hunk_t *hunk, svn_boolean_t match_first, svn_linenum_t upper_line, svn_linenum_t fuzz, svn_boolean_t ignore_whitespace, svn_boolean_t match_modified, svn_cancel_func_t cancel_func, void *cancel_baton, apr_pool_t *pool) argument
1822 get_hunk_info(hunk_info_t **hi, patch_target_t *target, target_content_t *content, svn_diff_hunk_t *hunk, svn_linenum_t fuzz, svn_linenum_t previous_offset, svn_boolean_t ignore_whitespace, svn_boolean_t is_prop_hunk, svn_cancel_func_t cancel_func, void *cancel_baton, apr_pool_t *result_pool, apr_pool_t *scratch_pool) argument
2220 svn_linenum_t fuzz = hi->match_fuzz; local
2562 svn_linenum_t fuzz = 0; local
2767 svn_linenum_t fuzz = 0; local
[all...]
/freebsd-13-stable/sys/dev/hid/
H A Dxb360gp.c65 .fuzz = 16, .flat = 128 }
68 .fuzz = 16, .flat = 128, .invert_value = true }
H A Dhidmap.h89 uint16_t fuzz; /* Evdev event fuzz */ member in struct:hidmap_item::__anon12146::__anon12147
H A Dhidmap.c587 mi->fuzz,
/freebsd-13-stable/sys/dev/evdev/
H A Devdev.c492 int32_t maximum, int32_t fuzz, int32_t flat, int32_t resolution)
502 .fuzz = fuzz,
687 int32_t fuzz, old_value, abs_change; local
714 fuzz = evdev->ev_absinfo[code].fuzz;
715 if (fuzz == 0 || code == ABS_MT_SLOT)
726 if (abs_change < fuzz / 2)
728 else if (abs_change < fuzz)
730 else if (abs_change < fuzz *
491 evdev_support_abs(struct evdev_dev *evdev, uint16_t code, int32_t minimum, int32_t maximum, int32_t fuzz, int32_t flat, int32_t resolution) argument
[all...]
H A Devdev_mt.c190 evdev->ev_absinfo[evdev_mtstmap[i][0]].fuzz,
H A Dinput.h64 int32_t fuzz; member in struct:input_absinfo
H A Duinput.c367 absinfo.fuzz = udev->absfuzz[i];
/freebsd-13-stable/contrib/bc/
H A Dconfigure135 printf ' -z, --enable-fuzz-mode\n'
465 fuzz=0
497 z) fuzz=1 ;;
606 enable-fuzz-mode) fuzz=1 ;;
619 enable-fuzz-mode* | enable-test-timing* | enable-valgrind*)
844 if [ "$fuzz" -ne 0 ]; then
1158 printf 'BC_ENABLE_AFL=%s\n' "$fuzz"
1231 contents=$(replace "$contents" "FUZZ" "$fuzz")
H A Dconfigure.sh135 printf ' -z, --enable-fuzz-mode\n'
465 fuzz=0
497 z) fuzz=1 ;;
606 enable-fuzz-mode) fuzz=1 ;;
619 enable-fuzz-mode* | enable-test-timing* | enable-valgrind*)
844 if [ "$fuzz" -ne 0 ]; then
1158 printf 'BC_ENABLE_AFL=%s\n' "$fuzz"
1231 contents=$(replace "$contents" "FUZZ" "$fuzz")
/freebsd-13-stable/sys/kern/
H A Dkern_switch.c431 runq_choose_fuzz(struct runq *rq, int fuzz) argument
439 /* fuzz == 1 is normal.. 0 or less are ignored */
440 if (fuzz > 1) {
445 int count = fuzz;
/freebsd-13-stable/contrib/netbsd-tests/fs/vfs/
H A Dt_vnops.c680 int fuzz; local
682 for (fuzz = -1; fuzz <= 1; fuzz++) {
683 symlink_len(tc, mp, len + fuzz);
/freebsd-13-stable/sys/dev/cyapa/
H A Dcyapa.c239 static int cyapa_fuzz(int delta, int *fuzz);
1804 int fuzz; local
1806 fuzz = *fuzzp;
1807 if (fuzz >= 0 && delta < 0) {
1809 --fuzz;
1810 } else if (fuzz <= 0 && delta > 0) {
1812 ++fuzz;
1814 *fuzzp = fuzz;
/freebsd-13-stable/contrib/wpa/src/ap/
H A Dsta_info.c439 int fuzz = os_random() % 20; local
451 next_time = hapd->conf->ap_max_inactivity + fuzz;
466 next_time = hapd->conf->ap_max_inactivity + fuzz -
/freebsd-13-stable/sys/contrib/zstd/
H A DMakefile19 FUZZDIR = $(TESTDIR)/fuzz
/freebsd-13-stable/contrib/ntp/ntpd/
H A Dntp_io.c3367 double fuzz; local
3447 fuzz = ntp_random() * 2. / FRAC * sys_fuzz;
3448 DTOLFP(fuzz, &lfpfuzz);
3455 DPRINTF(4, ("fetch_timestamp: timestamp delta: %s (incl. fuzz)\n",

Completed in 285 milliseconds