Skip to content

Commit

Permalink
finish save_if_interesting
Browse files Browse the repository at this point in the history
  • Loading branch information
nemo5566 committed May 19, 2019
1 parent acc6be8 commit 3413909
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kitty/fuzzers/guidedfuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ def _start(self):
if not self.model.skip_run:
sequence = self.model.get_sequence()
try:
self._run_sequence(sequence)
self.model.save_if_interesting()
run_res, trace_bits, pos_res = self._run_sequence(sequence)
except Exception as e:
self.model.save_if_interesting(run_res, trace_bits, e)
self.logger.error('Error occurred while fuzzing: %s', repr(e))
self.logger.error(traceback.format_exc())
break
Expand Down Expand Up @@ -155,7 +155,7 @@ def _run_sequence(self, sequence):
# self._test_list = StartEndList(0, self.model.num_mutations())
# self._load_session()
self._check_pause()
# self._pre_test()
self._pre_test()
trace_bits = [0] * MAP_SIZE
session_data = self.target.get_session_data()
self._test_info()
Expand Down

0 comments on commit 3413909

Please sign in to comment.