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-gitdep
cwe_checker
Commits
d3e87e55
Unverified
Commit
d3e87e55
authored
4 years ago
by
Melvin Klimke
Committed by
GitHub
4 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix missing field tid bug (#163)
parent
a6ef477d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
HelperFunctions.java
src/ghidra/p_code_extractor/internal/HelperFunctions.java
+2
-2
ExternSymbolCreator.java
src/ghidra/p_code_extractor/symbol/ExternSymbolCreator.java
+1
-1
No files found.
src/ghidra/p_code_extractor/internal/HelperFunctions.java
View file @
d3e87e55
...
@@ -164,9 +164,9 @@ public final class HelperFunctions {
...
@@ -164,9 +164,9 @@ public final class HelperFunctions {
* by some_function().
* by some_function().
*
*
*/
*/
public
static
Boolean
notInReferences
(
Function
func
)
{
public
static
Boolean
sameSymbolNameNotCallingCurrentSymbol
(
Function
func
)
{
for
(
Function
calling
:
func
.
getCallingFunctions
(
monitor
))
{
for
(
Function
calling
:
func
.
getCallingFunctions
(
monitor
))
{
if
(
calling
.
getName
().
equals
(
func
.
getName
())
&&
calling
.
isThunk
())
{
if
(
calling
.
getName
().
equals
(
func
.
getName
())
&&
calling
.
isThunk
()
&&
!
calling
.
getEntryPoint
().
toString
().
equals
(
func
.
getEntryPoint
().
toString
())
)
{
return
false
;
return
false
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/ghidra/p_code_extractor/symbol/ExternSymbolCreator.java
View file @
d3e87e55
...
@@ -96,7 +96,7 @@ public class ExternSymbolCreator {
...
@@ -96,7 +96,7 @@ public class ExternSymbolCreator {
ExternSymbol
extSym
=
new
ExternSymbol
();
ExternSymbol
extSym
=
new
ExternSymbol
();
extSym
.
setName
(
functions
.
getKey
());
extSym
.
setName
(
functions
.
getKey
());
for
(
Function
func
:
functions
.
getValue
())
{
for
(
Function
func
:
functions
.
getValue
())
{
if
(
HelperFunctions
.
notInReferences
(
func
))
{
if
(
HelperFunctions
.
sameSymbolNameNotCallingCurrentSymbol
(
func
))
{
extSym
.
setTid
(
new
Tid
(
String
.
format
(
"sub_%s"
,
func
.
getEntryPoint
().
toString
()),
func
.
getEntryPoint
().
toString
()));
extSym
.
setTid
(
new
Tid
(
String
.
format
(
"sub_%s"
,
func
.
getEntryPoint
().
toString
()),
func
.
getEntryPoint
().
toString
()));
extSym
.
setNoReturn
(
func
.
hasNoReturn
());
extSym
.
setNoReturn
(
func
.
hasNoReturn
());
extSym
.
setArguments
(
createArguments
(
func
));
extSym
.
setArguments
(
createArguments
(
func
));
...
...
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