Update Rizin to the latest dev (#3278)

This commit is contained in:
Anton Kochkov 2023-12-25 21:22:06 +08:00 committed by GitHub
parent a7246f9532
commit 8c03b14290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

2
rizin

@ -1 +1 @@
Subproject commit b9851b7c24ab5d3cc2d0192d4b8f8859cad2999c Subproject commit 286d9bd874bfbe1e782cba901e59984d708d10af

View File

@ -1666,7 +1666,7 @@ QVector<Chunk> CutterCore::getHeapChunks(RVA arena_addr)
rz_list_free(arenas); rz_list_free(arenas);
return chunks_vector; return chunks_vector;
} }
m_arena = ((RzArenaListItem *)arenas->head->data)->addr; m_arena = ((RzArenaListItem *)arenas->head->elem)->addr;
rz_list_free(arenas); rz_list_free(arenas);
} else { } else {
m_arena = arena_addr; m_arena = arena_addr;

View File

@ -55,7 +55,7 @@ static inline auto fromOwned(RZ_OWN RzList *data) -> UniquePtrCP<decltype(data),
// deprecated, prefer using CutterPVector and CutterRzList instead // deprecated, prefer using CutterPVector and CutterRzList instead
#define CutterRzListForeach(list, it, type, x) \ #define CutterRzListForeach(list, it, type, x) \
if (list) \ 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) \ #define CutterRzVectorForeach(vec, it, type) \
if ((vec) && (vec)->a) \ if ((vec) && (vec)->a) \
@ -133,7 +133,7 @@ public:
if (!iter) { if (!iter) {
return *this; return *this;
} }
iter = iter->n; iter = iter->next;
return *this; return *this;
} }
iterator operator++(int) iterator operator++(int)
@ -149,7 +149,7 @@ public:
if (!iter) { if (!iter) {
return nullptr; return nullptr;
} }
return reinterpret_cast<T *>(iter->data); return reinterpret_cast<T *>(iter->elem);
} }
}; };