Skip to content

Commit 838732e

Browse files
committed
Fix null deref in aap
1 parent 15a3691 commit 838732e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/anal_ghidra.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* r2ghidra - LGPL - Copyright 2020-2023 - pancake, FXTi */
1+
/* r2ghidra - LGPL - Copyright 2020-2024 - pancake, FXTi */
22

33
#include <r_lib.h>
44
#include <r_anal.h>
@@ -2211,7 +2211,7 @@ extern "C" RList *r2ghidra_preludes(RArchSession *as) {
22112211
}
22122212
r_list_foreach (as->arch->plugins, iter, _plugin) {
22132213
RArchPlugin *plugin = (RArchPlugin*)_plugin;
2214-
if (plugin->meta.name && !strcmp (plugin->meta.name, cpu)) {
2214+
if (plugin->preludes && plugin->meta.name && !strcmp (plugin->meta.name, cpu)) {
22152215
return plugin->preludes (as);
22162216
}
22172217
}

0 commit comments

Comments
 (0)