Lines Matching +full:fuzz +full:- +full:seconds
7 # http://www.apache.org/licenses/LICENSE-2.0
14 """A module to handle running a fuzz target for a specified amount of time."""
22 import clusterfuzz.fuzz
27 format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
32 LIBFUZZER_OPTIONS = ['-seed=1337', '-len_control=0']
39 # Seconds on top of duration until a timeout error is raised.
66 class FuzzTarget: # pylint: disable=too-many-instance-attributes
67 """A class to manage a single fuzz target.
70 target_name: The name of the fuzz target.
71 duration: The length of time in seconds that the target should run.
72 target_path: The location of the fuzz target binary.
76 # pylint: disable=too-many-arguments
79 """Represents a single fuzz target.
82 target_path: The location of the fuzz target binary.
83 duration: The length of time in seconds the target should run.
117 engine_impl = clusterfuzz.fuzz.get_engine(config_utils.DEFAULT_ENGINE)
126 def fuzz(self): member in FuzzTarget
127 """Starts the fuzz target run for the length of time specified by duration.
142 engine_impl = clusterfuzz.fuzz.get_engine(config_utils.DEFAULT_ENGINE)
148 result = engine_impl.fuzz(self.target_path, options,
163 # We found a bug in the fuzz target and we will report it.
170 """Deletes things that are no longer needed from fuzzing this fuzz target to
173 logging.info('Not freeing disk space after running fuzz target.')
178 # Delete the seed corpus, corpus, and fuzz target.
181 # https://github.com/google/oss-fuzz/issues/5383.
189 logging.info('Deleting fuzz target: %s.', self.target_name)
198 target_path: The path to the fuzz target to be tested
219 engine_impl = clusterfuzz.fuzz.get_engine(config_utils.DEFAULT_ENGINE)
258 'https://github.com/google/oss-fuzz/issues/new.')
276 # ClusterFuzz/OSS-Fuzz build.
287 # This happens if the project has ClusterFuzz builds, but the fuzz target
288 # is not in it (e.g. because the fuzz target is new).