From 0dcc2db7588cb24125c602d4a0790adb6e1a1515 Mon Sep 17 00:00:00 2001 From: treseco Date: Thu, 21 Dec 2023 19:17:13 -0500 Subject: [PATCH 1/2] use Rzlist methods. fixes rizinorg/rz-ghidra#337 --- src/RizinUtils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RizinUtils.h b/src/RizinUtils.h index 75d1ef65..cd4e48ee 100644 --- a/src/RizinUtils.h +++ b/src/RizinUtils.h @@ -11,9 +11,9 @@ typedef struct rz_list_iter_t RzListIter; template void rz_list_foreach_cpp(RzList *list, const F &func) { - for(RzListIter *it = list->head; it; it = it->n) + for(RzListIter *it = list->head; it; it = rz_list_iter_get_next(it)) { - func(reinterpret_cast(it->data)); + func(reinterpret_cast(rz_list_iter_get_data(it))); } } From e3b734e2b336a1db16bbd624800f0bf04ed619e5 Mon Sep 17 00:00:00 2001 From: Anton Kochkov Date: Mon, 25 Dec 2023 20:14:11 +0800 Subject: [PATCH 2/2] Fix callables test --- test/db/extras/ghidra | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/db/extras/ghidra b/test/db/extras/ghidra index bb3c1877..50891677 100644 --- a/test/db/extras/ghidra +++ b/test/db/extras/ghidra @@ -3138,13 +3138,10 @@ pdg EOF EXPECT=<