-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch to ignore the readonly varnodes
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/src/decompiler/funcdata_varnode.cc b/src/decompiler/funcdata_varnode.cc | ||
index dad2994..5a43b1d 100644 | ||
--- a/src/decompiler/funcdata_varnode.cc | ||
+++ b/src/decompiler/funcdata_varnode.cc | ||
@@ -516,6 +516,7 @@ void Funcdata::transferVarnodeProperties(Varnode *vn,Varnode *newVn,int4 lsbOffs | ||
bool Funcdata::fillinReadOnly(Varnode *vn) | ||
|
||
{ | ||
+/* | ||
if (vn->isWritten()) { // Can't replace output with constant | ||
PcodeOp *defop = vn->getDef(); | ||
if (defop->isMarker()) | ||
@@ -534,6 +535,7 @@ bool Funcdata::fillinReadOnly(Varnode *vn) | ||
} | ||
return false; // No change was made | ||
} | ||
+*/ | ||
|
||
if (vn->getSize() > sizeof(uintb)) | ||
return false; // Constant will exceed precision |