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
f86b10a6
Unverified
Commit
f86b10a6
authored
Nov 16, 2020
by
Melvin Klimke
Committed by
GitHub
Nov 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include internal thunk functions (#105)
parent
02b9ec8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
PcodeExtractor.java
ghidra/p_code_extractor/PcodeExtractor.java
+3
-3
No files found.
ghidra/p_code_extractor/PcodeExtractor.java
View file @
f86b10a6
...
...
@@ -103,7 +103,7 @@ public class PcodeExtractor extends GhidraScript {
*/
protected
void
setFunctionEntryPoints
()
{
// Add internal function addresses
for
(
Function
func
:
funcMan
.
getFunctions
NoStubs
(
true
))
{
for
(
Function
func
:
funcMan
.
getFunctions
(
true
))
{
String
address
=
func
.
getEntryPoint
().
toString
();
functionEntryPoints
.
put
(
address
,
new
Tid
(
String
.
format
(
"sub_%s"
,
address
),
address
));
}
...
...
@@ -139,9 +139,9 @@ public class PcodeExtractor extends GhidraScript {
* Iterates over functions to create sub terms and calls the block iterator to add all block terms to each subroutine.
*/
protected
Term
<
Program
>
iterateFunctions
(
SimpleBlockModel
simpleBM
,
Listing
listing
)
{
FunctionIterator
functions
=
funcMan
.
getFunctions
NoStubs
(
true
);
FunctionIterator
functions
=
funcMan
.
getFunctions
(
true
);
for
(
Function
func
:
functions
)
{
if
(!
func
.
isThunk
())
{
if
(!
externalSymbolMap
.
containsKey
(
func
.
getName
()))
{
Term
<
Sub
>
currentSub
=
createSubTerm
(
func
);
currentSub
.
getTerm
().
setBlocks
(
iterateBlocks
(
currentSub
,
simpleBM
,
listing
));
program
.
getTerm
().
addSub
(
currentSub
);
...
...
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