Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cwe_checker
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
cwe_checker
Commits
6f2a5775
Unverified
Commit
6f2a5775
authored
4 years ago
by
Melvin Klimke
Committed by
GitHub
4 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix no tid for external symbol with internal reference (#120)
parent
542db66e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
PcodeExtractor.java
ghidra/p_code_extractor/PcodeExtractor.java
+8
-1
HelperFunctions.java
ghidra/p_code_extractor/internal/HelperFunctions.java
+1
-1
No files found.
ghidra/p_code_extractor/PcodeExtractor.java
View file @
6f2a5775
...
...
@@ -75,7 +75,14 @@ public class PcodeExtractor extends GhidraScript {
protected
Term
<
Program
>
iterateFunctions
(
SimpleBlockModel
simpleBM
,
Listing
listing
,
Term
<
Program
>
program
)
{
FunctionIterator
functions
=
HelperFunctions
.
funcMan
.
getFunctions
(
true
);
for
(
Function
func
:
functions
)
{
if
(!
ExternSymbolCreator
.
externalSymbolMap
.
containsKey
(
func
.
getName
())){
if
(
ExternSymbolCreator
.
externalSymbolMap
.
containsKey
(
func
.
getName
()))
{
ArrayList
<
String
>
addresses
=
ExternSymbolCreator
.
externalSymbolMap
.
get
(
func
.
getName
()).
getAddresses
();
if
(!
addresses
.
stream
().
anyMatch
(
addr
->
addr
.
equals
(
func
.
getEntryPoint
().
toString
())))
{
Term
<
Sub
>
currentSub
=
TermCreator
.
createSubTerm
(
func
);
currentSub
.
getTerm
().
setBlocks
(
iterateBlocks
(
currentSub
,
simpleBM
,
listing
));
program
.
getTerm
().
addSub
(
currentSub
);
}
}
else
{
Term
<
Sub
>
currentSub
=
TermCreator
.
createSubTerm
(
func
);
currentSub
.
getTerm
().
setBlocks
(
iterateBlocks
(
currentSub
,
simpleBM
,
listing
));
program
.
getTerm
().
addSub
(
currentSub
);
...
...
This diff is collapsed.
Click to expand it.
ghidra/p_code_extractor/internal/HelperFunctions.java
View file @
6f2a5775
...
...
@@ -166,7 +166,7 @@ public final class HelperFunctions {
*/
public
static
Boolean
notInReferences
(
Function
func
)
{
for
(
Function
calling
:
func
.
getCallingFunctions
(
monitor
))
{
if
(
calling
.
getName
().
equals
(
func
.
getName
()))
{
if
(
calling
.
getName
().
equals
(
func
.
getName
())
&&
calling
.
isThunk
()
)
{
return
false
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment