Skip to content

Commit 367d7a9

Browse files
radaretrufae
authored andcommitted
Fix objc parsing on 32bit binaries ##analysis
1 parent 9069187 commit 367d7a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libr/core/anal_objc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static ut64 getRefPtr(RCoreObjc *o, ut64 classMethodsVA, bool *rfound) {
107107
RVector *vec = ht_up_find (o->up, namePtr, rfound);
108108
if (!*rfound || !vec) {
109109
*rfound = false;
110-
return false;
110+
return UT64_MAX;
111111
}
112112
ut64 *addr;
113113
r_vector_foreach (vec, addr) {
@@ -126,7 +126,7 @@ static ut64 getRefPtr(RCoreObjc *o, ut64 classMethodsVA, bool *rfound) {
126126
*rfound = false;
127127
return UT64_MAX;
128128
}
129-
return isMsgRef? ref - 8: ref;
129+
return isMsgRef? ref - o->word_size: ref;
130130
}
131131

132132
static bool objc_build_refs(RCoreObjc *objc) {

0 commit comments

Comments
 (0)