diff --git a/python/idautils.py b/python/idautils.py index b5b4afa..b25aeb9 100644 --- a/python/idautils.py +++ b/python/idautils.py @@ -255,8 +255,11 @@ def GetDataList(ea, count, itemsize=1): else: raise ValueError, "Invalid data size! Must be 1, 2, 4 or 8" - for curea in xrange(ea, ea+itemsize*count, itemsize): + endea = ea + itemsize * count + curea = ea + while curea < endea: yield getdata(curea) + curea += itemsize def FuncItems(start):