- bugfix: idc.GetString()/idaapi.get_ascii_contents()/idautils.Strings() were limited to MAXSTR string length

- minor mods
This commit is contained in:
elias.bachaalany
2011-05-19 15:06:31 +00:00
parent c94f5c10bb
commit a12974b66c
4 changed files with 73 additions and 21 deletions

View File

@@ -2327,7 +2327,7 @@ def GetString(ea, length = -1, strtype = ASCSTR_C):
if length == -1:
length = idaapi.get_max_ascii_length(ea, strtype)
return idaapi.get_ascii_contents(ea, length, strtype)
return idaapi.get_ascii_contents(ea, length, strtype, length + 1)
def GetStringType(ea):
@@ -2911,7 +2911,7 @@ def AskAddr(defval, prompt):
"""
Ask the user to enter an address
@param defval: a string designating the default address value. This value
@param defval: an ea_t designating the default address value. This value
will appear in the dialog box.
@param prompt: the prompt to display in the dialog box