MCPcopy
hub / github.com/keystone-engine/keypatch / check_address

Method check_address

keypatch.py:237–245  ·  view source on GitHub ↗
(address)

Source from the content-addressed store, hash-verified

235 # 0 type mismatch of input address
236 # 1 valid address at target binary
237 def check_address(address):
238 try:
239 if idaapi.isEnabled(address):
240 return 1
241 else:
242 return -1
243 except:
244 # invalid type
245 return 0
246
247 ### resolve IDA names from input asm code
248 # todo: a better syntax parser for all archs

Callers 5

ida_resolveMethod · 0.95
ida_get_itemMethod · 0.95
ida_get_disasmMethod · 0.95
assembleMethod · 0.95
patch_codeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected