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

/freebsd-11-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
245 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.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...]
/freebsd-11-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-11-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-11-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-11-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-11-stable/sys/kern/
H A Dkern_switch.c428 runq_choose_fuzz(struct runq *rq, int fuzz) argument
436 /* fuzz == 1 is normal.. 0 or less are ignored */
437 if (fuzz > 1) {
442 int count = fuzz;
/freebsd-11-stable/sys/dev/cyapa/
H A Dcyapa.c228 static int cyapa_fuzz(int delta, int *fuzz);
1693 int fuzz; local
1695 fuzz = *fuzzp;
1696 if (fuzz >= 0 && delta < 0) {
1698 --fuzz;
1699 } else if (fuzz <= 0 && delta > 0) {
1701 ++fuzz;
1703 *fuzzp = fuzz;
/freebsd-11-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-11-stable/sys/dev/evdev/
H A Devdev_mt.c191 evdev->ev_absinfo[evdev_mtstmap[i][0]].fuzz,
H A Dinput.h64 int32_t fuzz; member in struct:input_absinfo
H A Duinput.c372 absinfo.fuzz = udev->absfuzz[i];
535 uabs->absinfo.maximum, uabs->absinfo.fuzz,
H A Devdev.c465 int32_t minimum, int32_t maximum, int32_t fuzz, int32_t flat,
476 .fuzz = fuzz,
687 /* TBD: implement fuzz */
464 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-11-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-11-stable/contrib/gcc/
H A Dfinal.c608 int fuzz = 0;
624 fuzz += (-align_addr ^ growth) & (new_align - known_align);
627 return fuzz;
604 int fuzz = 0; local
/freebsd-11-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 259 milliseconds