Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use Rzlist methods. fixes rizinorg/rz-ghidra#337 #338

Merged
merged 2 commits into from
Dec 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/RizinUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ typedef struct rz_list_iter_t RzListIter;

template<typename T, typename F> 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<T *>(it->data));
func(reinterpret_cast<T *>(rz_list_iter_get_data(it)));
}
}

Expand Down
3 changes: 0 additions & 3 deletions test/db/extras/ghidra
Original file line number Diff line number Diff line change
Expand Up @@ -3138,13 +3138,10 @@ pdg
EOF
EXPECT=<<EOF

// WARNING: Variable defined which should be unmapped: var_30h

jstring sym.Java_JNIFoo_nativeFoo(JNIEnv *env, jobject obj)
{
int64_t iVar1;
jstring pvVar2;
int64_t var_30h;

iVar1 = sym.imp.malloc(0x1e);
if (iVar1 == 0) {
Expand Down
Loading