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
d3e87e55
Unverified
Commit
d3e87e55
authored
Apr 13, 2021
by
Melvin Klimke
Committed by
GitHub
Apr 13, 2021
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 {
* by some_function().
*
*/
public
static
Boolean
notInReferences
(
Function
func
)
{
public
static
Boolean
sameSymbolNameNotCallingCurrentSymbol
(
Function
func
)
{
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
;
}
}
...
...
src/ghidra/p_code_extractor/symbol/ExternSymbolCreator.java
View file @
d3e87e55
...
...
@@ -96,7 +96,7 @@ public class ExternSymbolCreator {
ExternSymbol
extSym
=
new
ExternSymbol
();
extSym
.
setName
(
functions
.
getKey
());
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
.
setNoReturn
(
func
.
hasNoReturn
());
extSym
.
setArguments
(
createArguments
(
func
));
...
...
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