From 375606cefdc245cf42b698832a1282efff5e8290 Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Sun, 15 Jun 2008 16:22:37 +0000 Subject: [PATCH] idc.py: Fixed SEARCH_UP in FindBinary() --- python/idc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/idc.py b/python/idc.py index b411f53..8b2b5e8 100644 --- a/python/idc.py +++ b/python/idc.py @@ -2094,7 +2094,8 @@ def FindBinary(ea, flag, str, radix=16): @note: Example: "41 42" - find 2 bytes 41h,42h (radix is 16) """ - return idaapi.find_binary(ea, BADADDR, str, radix, flag) + endea = flag & 1 and idaapi.cvar.inf.maxEA or idaapi.cvar.inf.minEA + return idaapi.find_binary(ea, endea, str, radix, flag) #----------------------------------------------------------------------------