Skip to content

Commit

Permalink
Fix null deref in aap
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed May 4, 2024
1 parent 15a3691 commit 838732e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/anal_ghidra.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* r2ghidra - LGPL - Copyright 2020-2023 - pancake, FXTi */
/* r2ghidra - LGPL - Copyright 2020-2024 - pancake, FXTi */

#include <r_lib.h>
#include <r_anal.h>
Expand Down Expand Up @@ -2211,7 +2211,7 @@ extern "C" RList *r2ghidra_preludes(RArchSession *as) {
}
r_list_foreach (as->arch->plugins, iter, _plugin) {
RArchPlugin *plugin = (RArchPlugin*)_plugin;
if (plugin->meta.name && !strcmp (plugin->meta.name, cpu)) {
if (plugin->preludes && plugin->meta.name && !strcmp (plugin->meta.name, cpu)) {
return plugin->preludes (as);
}
}
Expand Down

0 comments on commit 838732e

Please sign in to comment.