Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def pass_test(self):
super(DeepManticore, self).pass_test()
raise TerminateState(OUR_TERMINATION_REASON, testcase=False)
def abandon_test(self):
super(DeepManticore, self).abandon_test()
raise TerminateState(OUR_TERMINATION_REASON, testcase=False)
def fail_test(self):
super(DeepManticore, self).fail_test()
raise TerminateState(OUR_TERMINATION_REASON, testcase=False)
def pass_test(self):
super(DeepManticore, self).pass_test()
raise TerminateState(OUR_TERMINATION_REASON, testcase=False)
def abandon_test(self):
super(DeepManticore, self).abandon_test()
raise TerminateState(OUR_TERMINATION_REASON, testcase=False)
def fail_test(self):
super(DeepManticore, self).fail_test()
raise TerminateState(OUR_TERMINATION_REASON, testcase=False)
def crash_test(self):
super(DeepManticore, self).crash_test()
raise TerminateState(OUR_TERMINATION_REASON, testcase=False)
def _is_program_crash(reason):
"""Using the `reason` for the termination of a Manticore `will_terminate_state`
event, decide if we want to treat the termination as a "crash" of the program
being analyzed."""
if not isinstance(reason, TerminateState):
return False
return 'Invalid memory access' in str(reason)
def _is_program_crash(reason):
"""Using the `reason` for the termination of a Manticore `will_terminate_state`
event, decide if we want to treat the termination as a "crash" of the program
being analyzed."""
if not isinstance(reason, TerminateState):
return False
return 'Invalid memory access' in str(reason)