mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
Fix string splitting exception
`string` isn't a type, the author intended to use `str.split()`
This commit is contained in:
parent
472ad40077
commit
72cdb5242e
1 changed files with 2 additions and 2 deletions
|
@ -2395,7 +2395,7 @@ class XmlImporter(IdaXml):
|
||||||
# overlayed addresses not currently handled
|
# overlayed addresses not currently handled
|
||||||
return BADADDR
|
return BADADDR
|
||||||
elif ':' in addrstr:
|
elif ':' in addrstr:
|
||||||
[segstr, offset_str] = string.split(addrstr,':')
|
[segstr, offset_str] = str.split(addrstr,':')
|
||||||
offset = int(offset_str,16)
|
offset = int(offset_str,16)
|
||||||
if self.is_int(segstr) == True:
|
if self.is_int(segstr) == True:
|
||||||
sgmt = int(segstr,16)
|
sgmt = int(segstr,16)
|
||||||
|
@ -3239,7 +3239,7 @@ class XmlImporter(IdaXml):
|
||||||
idc.warning(msg)
|
idc.warning(msg)
|
||||||
return
|
return
|
||||||
elif ':' in addrstr:
|
elif ':' in addrstr:
|
||||||
[seg_str, offset_str] = string.split(addrstr,':')
|
[seg_str, offset_str] = str.split(addrstr,':')
|
||||||
offset = int(offset_str, 16)
|
offset = int(offset_str, 16)
|
||||||
if self.is_int(seg_str):
|
if self.is_int(seg_str):
|
||||||
base = int(seg_str, 16)
|
base = int(seg_str, 16)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue