Lines Matching defs:Options
321 const FuzzingOptions &Options) {
376 const FuzzingOptions &Options) {
422 : Options.ArtifactPrefix + "minimized-from-" + Hash(U);
475 void Merge(Fuzzer *F, FuzzingOptions &Options, const Vector<std::string> &Args,
495 F->WriteToOutputCorpus(FileToVector(Path, Options.MaxLen));
644 FuzzingOptions Options;
645 Options.Verbosity = Flags.verbosity;
646 Options.MaxLen = Flags.max_len;
647 Options.LenControl = Flags.len_control;
648 Options.UnitTimeoutSec = Flags.timeout;
649 Options.ErrorExitCode = Flags.error_exitcode;
650 Options.TimeoutExitCode = Flags.timeout_exitcode;
651 Options.IgnoreTimeouts = Flags.ignore_timeouts;
652 Options.IgnoreOOMs = Flags.ignore_ooms;
653 Options.IgnoreCrashes = Flags.ignore_crashes;
654 Options.MaxTotalTimeSec = Flags.max_total_time;
655 Options.DoCrossOver = Flags.cross_over;
656 Options.MutateDepth = Flags.mutate_depth;
657 Options.ReduceDepth = Flags.reduce_depth;
658 Options.UseCounters = Flags.use_counters;
659 Options.UseMemmem = Flags.use_memmem;
660 Options.UseCmp = Flags.use_cmp;
661 Options.UseValueProfile = Flags.use_value_profile;
662 Options.Shrink = Flags.shrink;
663 Options.ReduceInputs = Flags.reduce_inputs;
664 Options.ShuffleAtStartUp = Flags.shuffle;
665 Options.PreferSmall = Flags.prefer_small;
666 Options.ReloadIntervalSec = Flags.reload;
667 Options.OnlyASCII = Flags.only_ascii;
668 Options.DetectLeaks = Flags.detect_leaks;
669 Options.PurgeAllocatorIntervalSec = Flags.purge_allocator_interval;
670 Options.TraceMalloc = Flags.trace_malloc;
671 Options.RssLimitMb = Flags.rss_limit_mb;
672 Options.MallocLimitMb = Flags.malloc_limit_mb;
673 if (!Options.MallocLimitMb)
674 Options.MallocLimitMb = Options.RssLimitMb;
676 Options.MaxNumberOfRuns = Flags.runs;
678 Options.OutputCorpus = (*Inputs)[0];
679 Options.ReportSlowUnits = Flags.report_slow_units;
681 Options.ArtifactPrefix = Flags.artifact_prefix;
683 Options.ExactArtifactPath = Flags.exact_artifact_path;
691 Options.SaveArtifacts =
693 Options.PrintNewCovPcs = Flags.print_pcs;
694 Options.PrintNewCovFuncs = Flags.print_funcs;
695 Options.PrintFinalStats = Flags.print_final_stats;
696 Options.PrintCorpusStats = Flags.print_corpus_stats;
697 Options.PrintCoverage = Flags.print_coverage;
699 Options.ExitOnSrcPos = Flags.exit_on_src_pos;
701 Options.ExitOnItem = Flags.exit_on_item;
703 Options.FocusFunction = Flags.focus_function;
705 Options.DataFlowTrace = Flags.data_flow_trace;
707 Options.FeaturesDir = Flags.features_dir;
709 Options.CollectDataFlow = Flags.collect_data_flow;
711 Options.StopFile = Flags.stop_file;
712 Options.Entropic = Flags.entropic;
713 Options.EntropicFeatureFrequencyThreshold =
715 Options.EntropicNumberOfRarestFeatures =
717 if (Options.Entropic) {
718 if (!Options.FocusFunction.empty()) {
724 Options.EntropicFeatureFrequencyThreshold,
725 Options.EntropicNumberOfRarestFeatures);
728 Entropic.Enabled = Options.Entropic;
730 Options.EntropicFeatureFrequencyThreshold;
731 Entropic.NumberOfRarestFeatures = Options.EntropicNumberOfRarestFeatures;
751 auto *MD = new MutationDispatcher(Rand, Options);
752 auto *Corpus = new InputCorpus(Options.OutputCorpus, Entropic);
753 auto *F = new Fuzzer(Callback, *Corpus, *MD, Options);
765 Options.HandleAbrt = Flags.handle_abrt;
766 Options.HandleBus = Flags.handle_bus;
767 Options.HandleFpe = Flags.handle_fpe;
768 Options.HandleIll = Flags.handle_ill;
769 Options.HandleInt = Flags.handle_int;
770 Options.HandleSegv = Flags.handle_segv;
771 Options.HandleTerm = Flags.handle_term;
772 Options.HandleXfsz = Flags.handle_xfsz;
773 Options.HandleUsr1 = Flags.handle_usr1;
774 Options.HandleUsr2 = Flags.handle_usr2;
775 SetSignalHandler(Options);
780 return MinimizeCrashInput(Args, Options);
786 return CleanseCrashInput(Args, Options);
789 Options.SaveArtifacts = false;
797 RunOneTest(F, Path.c_str(), Options.MaxLen);
811 FuzzWithFork(F->GetMD().GetRand(), Options, Args, *Inputs, Flags.fork);
814 Merge(F, Options, Args, *Inputs, Flags.merge_control_file);
818 if (Options.MaxLen == 0)