def check_global(ea):
if idaapi.get_func(ea): return False
cache = internal.comment.decode(db.get_comment(db.top()))
cache.update( internal.comment.decode(db.get_comment(db.bottom())) )
node = internal.netnode.get(internal.comment.globals.Node)
tag = internal.comment.decode(db.get_comment(ea))
if cache and '__address__' not in cache: return False
if not cache and tag: return False
count = internal.netnode.alt.get(node, ea)
if tag and not count: return False
if len(tag['__address__']) != count: return False
keys = tag['__tags__']
if any(t not in cache for t in keys): return False
return True
评论列表
文章目录