mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-07-30 07:18:37 -09:00
Fix string splitting exception
`string` isn't a type, the author intended to use `str.split()`
This commit is contained in:
@@ -2395,7 +2395,7 @@ class XmlImporter(IdaXml):
|
||||
# overlayed addresses not currently handled
|
||||
return BADADDR
|
||||
elif ':' in addrstr:
|
||||
[segstr, offset_str] = string.split(addrstr,':')
|
||||
[segstr, offset_str] = str.split(addrstr,':')
|
||||
offset = int(offset_str,16)
|
||||
if self.is_int(segstr) == True:
|
||||
sgmt = int(segstr,16)
|
||||
@@ -3239,7 +3239,7 @@ class XmlImporter(IdaXml):
|
||||
idc.warning(msg)
|
||||
return
|
||||
elif ':' in addrstr:
|
||||
[seg_str, offset_str] = string.split(addrstr,':')
|
||||
[seg_str, offset_str] = str.split(addrstr,':')
|
||||
offset = int(offset_str, 16)
|
||||
if self.is_int(seg_str):
|
||||
base = int(seg_str, 16)
|
||||
|
||||
Reference in New Issue
Block a user