/freebsd-12-stable/crypto/openssh/regress/unittests/test_helper/ |
H A 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 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 D | Makefile | 4 SRCS= test_helper.c fuzz.c
|
H A D | test_helper.h | 284 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-12-stable/crypto/openssh/regress/unittests/sshkey/ |
H A D | test_fuzz.c | 42 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-12-stable/crypto/openssh/regress/unittests/sshbuf/ |
H A D | test_sshbuf_getput_fuzz.c | 74 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-12-stable/usr.bin/patch/ |
H A D | patch.c | 156 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-12-stable/sys/contrib/zstd/tests/fuzz/ |
H A D | Makefile | 23 CORPORA_URL_PREFIX:=https://github.com/facebook/zstd/releases/download/fuzz-corpora/ 43 FUZZ_HEADERS := fuzz_helpers.h fuzz.h zstd_helpers.h 116 CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" $(PYTHON) ./fuzz.py build all 117 $(PYTHON) ./fuzz.py regression all
|
/freebsd-12-stable/contrib/subversion/subversion/libsvn_client/ |
H A D | patch.c | 69 /* 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-12-stable/contrib/bc/ |
H A D | configure | 135 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 D | configure.sh | 135 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-12-stable/sys/kern/ |
H A D | kern_switch.c | 430 runq_choose_fuzz(struct runq *rq, int fuzz) argument 438 /* fuzz == 1 is normal.. 0 or less are ignored */ 439 if (fuzz > 1) { 444 int count = fuzz;
|
/freebsd-12-stable/sys/dev/cyapa/ |
H A D | cyapa.c | 229 static int cyapa_fuzz(int delta, int *fuzz); 1717 int fuzz; local 1719 fuzz = *fuzzp; 1720 if (fuzz >= 0 && delta < 0) { 1722 --fuzz; 1723 } else if (fuzz <= 0 && delta > 0) { 1725 ++fuzz; 1727 *fuzzp = fuzz;
|
/freebsd-12-stable/contrib/netbsd-tests/fs/vfs/ |
H A D | t_vnops.c | 680 int fuzz; local 682 for (fuzz = -1; fuzz <= 1; fuzz++) { 683 symlink_len(tc, mp, len + fuzz);
|
/freebsd-12-stable/sys/dev/evdev/ |
H A D | evdev_mt.c | 191 evdev->ev_absinfo[evdev_mtstmap[i][0]].fuzz,
|
H A D | input.h | 64 int32_t fuzz; member in struct:input_absinfo
|
H A D | uinput.c | 372 absinfo.fuzz = udev->absfuzz[i]; 535 uabs->absinfo.maximum, uabs->absinfo.fuzz,
|
H A D | evdev.c | 479 int32_t minimum, int32_t maximum, int32_t fuzz, int32_t flat, 490 .fuzz = fuzz, 701 /* TBD: implement fuzz */ 478 evdev_support_abs(struct evdev_dev *evdev, uint16_t code, int32_t value, int32_t minimum, int32_t maximum, int32_t fuzz, int32_t flat, int32_t resolution) argument
|
/freebsd-12-stable/contrib/wpa/src/ap/ |
H A D | sta_info.c | 439 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-12-stable/sys/contrib/zstd/ |
H A D | Makefile | 15 FUZZDIR = $(TESTDIR)/fuzz
|
/freebsd-12-stable/contrib/gcc/ |
H A D | final.c | 608 int fuzz = 0; 624 fuzz += (-align_addr ^ growth) & (new_align - known_align); 627 return fuzz; 604 int fuzz = 0; local
|
/freebsd-12-stable/contrib/ntp/ntpd/ |
H A D | ntp_io.c | 3367 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",
|