mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-11 23:16:05 +00:00
Fix pf x? (b)ee ;pf.a crash
This commit is contained in:
parent
55fe0a9e9a
commit
46ccb5e361
@ -424,6 +424,10 @@ static int r_print_format_struct(RPrint* p, ut64 seek, const ut8* b, int len, ch
|
||||
}
|
||||
if (flag) p->printf = realprintf;
|
||||
fmt = r_strht_get (p->formats, name);
|
||||
if (!fmt || !*fmt) {
|
||||
eprintf ("Undefined struct.\n");
|
||||
return 0;
|
||||
}
|
||||
r_print_format (p, seek, b, len, fmt, flag, NULL);
|
||||
return computeStructSize(strdup(fmt));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user