Skip to content

Commit

Permalink
Add patch to ignore the readonly varnodes
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jul 1, 2022
1 parent 3d7daf3 commit 47026fb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions patches/00067-readonly-warning.patch
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

0 comments on commit 47026fb

Please sign in to comment.