Skip to content

Commit

Permalink
ds_print_meta_infos: continue if metas is null (#8739)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazarmy authored and radare committed Oct 25, 2017
1 parent 4cfb06e commit e9ac437
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libr/core/disasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2082,10 +2082,11 @@ static int ds_print_meta_infos(RDisasmState *ds, ut8* buf, int len, int idx) {
}
snprintf (key, sizeof (key), "meta.%c.0x%" PFMT64x, *infos, ds->at);
metas = sdb_const_get (s, key, 0);
if (metas) {
if (!r_meta_deserialize_val (mi, *infos, ds->at, metas)) {
continue;
}
if (!metas) {
continue;
}
if (!r_meta_deserialize_val (mi, *infos, ds->at, metas)) {
continue;
}
// TODO: implement ranged meta find (if not at the begging of function..
char *out = NULL;
Expand Down

0 comments on commit e9ac437

Please sign in to comment.