mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-10 00:02:39 +00:00
* Fix null pointer issue related to r_syscall and r_core
This commit is contained in:
parent
bfbd12ed3c
commit
93e69bab0e
@ -1678,6 +1678,10 @@ static void cmd_syscall_do(RCore *core, int num) {
|
||||
int i;
|
||||
char str[64];
|
||||
RSyscallItem *item = r_syscall_get (core->syscall, num, -1);
|
||||
if (item == NULL) {
|
||||
r_cons_printf ("%d = unknown ()", num);
|
||||
return;
|
||||
}
|
||||
r_cons_printf ("%d = %s (", item->num, item->name);
|
||||
// TODO: move this to r_syscall
|
||||
for (i=0; i<item->args; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user