mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-23 06:14:53 +00:00
Fix null deref in rasm2 -L
This commit is contained in:
parent
0e87b15388
commit
736ebdee33
@ -165,7 +165,7 @@ static const char *has_esil(RAsmState *as, const char *name) {
|
||||
RListIter *iter;
|
||||
RAnalPlugin *h;
|
||||
r_list_foreach (as->anal->plugins, iter, h) {
|
||||
if (!strcmp (name, h->name)) {
|
||||
if (h->name && !strcmp (name, h->name)) {
|
||||
return h->esil? "Ae": "A_";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user