Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
ghidra_script
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ComputerSecurity
ghidra_script
Commits
78a85b69
Unverified
Commit
78a85b69
authored
6 years ago
by
Vincent Brillault
Browse files
Options
Downloads
Patches
Plain Diff
string_load: fix NoneType exceptions (no data at addr)
parent
b57f64c5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
string_load.py
+7
-3
7 additions, 3 deletions
string_load.py
with
7 additions
and
3 deletions
string_load.py
+
7
−
3
View file @
78a85b69
...
...
@@ -83,11 +83,15 @@ def check_string(start, length):
end
=
start
.
add
(
length
-
1
)
if
not
range_printable
(
start
,
end
):
return
False
datatype_name
=
'
None
'
data
=
listing
.
getDataAt
(
start
)
datatype
=
data
.
getDataType
().
getName
()
if
datatype
!=
'
string
'
:
if
data
is
not
None
:
datatype
=
data
.
getDataType
()
if
datatype
is
not
None
:
datatype_name
=
datatype
.
getName
()
if
datatype_name
!=
'
string
'
:
newStr
=
makeString
(
start
,
length
,
end
)
print
(
"
Found string not seen before (was %s) at %s of len %s: %s
"
%
(
datatype
,
start
,
length
,
newStr
))
print
(
"
Found string not seen before (was %s) at %s of len %s: %s
"
%
(
datatype
_name
,
start
,
length
,
newStr
))
return
True
data_len
=
data
.
getLength
()
if
data_len
>
length
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment