From 4b1c3cd4c4c6d7c30df6b0f8ea9aaa8b34d2eb39 Mon Sep 17 00:00:00 2001 From: "elias.bachaalany" Date: Fri, 2 Jul 2010 16:10:30 +0000 Subject: [PATCH] GetFchunkAttr() is reimplemented using idaapi rather than Eval() and IDC (issue 52) --- python/idc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/idc.py b/python/idc.py index a694415..bb44b15 100644 --- a/python/idc.py +++ b/python/idc.py @@ -5244,7 +5244,8 @@ def GetFchunkAttr(ea, attr): @return: desired attribute or -1 """ - return Eval("GetFchunkAttr(0x%x, %d);" % (ea, attr)) + func = idaapi.get_fchunk(ea) + return _IDC_GetAttr(func, _FUNCATTRMAP, attr) if func else BADADDR def SetFchunkAttr(ea, attr, value):