Skip to content

Commit

Permalink
Update Rizin to the latest dev (#3278)
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka authored Dec 25, 2023
1 parent a7246f9 commit 8c03b14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rizin
Submodule rizin updated 231 files
2 changes: 1 addition & 1 deletion src/core/Cutter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1666,7 +1666,7 @@ QVector<Chunk> CutterCore::getHeapChunks(RVA arena_addr)
rz_list_free(arenas);
return chunks_vector;
}
m_arena = ((RzArenaListItem *)arenas->head->data)->addr;
m_arena = ((RzArenaListItem *)arenas->head->elem)->addr;
rz_list_free(arenas);
} else {
m_arena = arena_addr;
Expand Down
6 changes: 3 additions & 3 deletions src/core/RizinCpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static inline auto fromOwned(RZ_OWN RzList *data) -> UniquePtrCP<decltype(data),
// deprecated, prefer using CutterPVector and CutterRzList instead
#define CutterRzListForeach(list, it, type, x) \
if (list) \
for (it = list->head; it && ((x = static_cast<type *>(it->data))); it = it->n)
for (it = list->head; it && ((x = static_cast<type *>(it->elem))); it = it->next)

#define CutterRzVectorForeach(vec, it, type) \
if ((vec) && (vec)->a) \
Expand Down Expand Up @@ -133,7 +133,7 @@ class CutterRzList
if (!iter) {
return *this;
}
iter = iter->n;
iter = iter->next;
return *this;
}
iterator operator++(int)
Expand All @@ -149,7 +149,7 @@ class CutterRzList
if (!iter) {
return nullptr;
}
return reinterpret_cast<T *>(iter->data);
return reinterpret_cast<T *>(iter->elem);
}
};

Expand Down

0 comments on commit 8c03b14

Please sign in to comment.