* Remove ManticoreControl object * Some changes were brought in from dev-symbolicate-api * Add Manticore.terminate() * Add State.abandon() * Update sample scripts * Remove ctl from README * Fix tests * Bring in changes from dev-symbolicate-api * Lower-case wildcard * string -> cstring * abandon() docstring * Rename "name" to "label" * Remove obsolete comment * Make NUL a possible value for the last byte of a cstring * Fix AbandonState and add example binary&script * name -> label in tests, manticore.py * Ignore .DS_Store * Update symbolicate_buffer docstring
This commit is contained in:
@@ -22,9 +22,9 @@ if __name__ == '__main__':
|
||||
# Ensure that we ignore all possible branches to libc
|
||||
# This hook returns False if we should abandon exploration
|
||||
# or True to continue
|
||||
def fork_hook(new_pc):
|
||||
def fork_hook(ctx, state):
|
||||
_from, _to = lib.start, lib.start + lib.size
|
||||
return not (_from <= new_pc < _to)
|
||||
return not (_from <= state.cpu.PC < _to)
|
||||
m.add_fork_hook(fork_hook)
|
||||
|
||||
# Start path exploration. start() returns when Manticore
|
||||
|
||||
Reference in New Issue
Block a user