-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
I'm not quite sure if this was done on purpose, or by accident, but I've noticed that in ps3mapi_core.c in the function int ps3mapi_check_syscall(int num) that MAMBA (and also Cobra) does check the availability for the specified syscall twice... I don't know what purpose it serves to do the same task twice, so my suggestion is changing it from:
int ps3mapi_check_syscall(int num)
{
uint64_t sc_null = *(uint64_t *)MKA(syscall_table_symbol);
if (*(uint64_t *)MKA(syscall_table_symbol + (8 * num)) != sc_null)
{
uint64_t syscall_not_impl = *(uint64_t *)sc_null;
if ((*(uint64_t *)MKA(syscall_table_symbol + (8 * num))) != syscall_not_impl)
return SUCCEEDED;
}
return ENOSYS;
}to:
int ps3mapi_check_syscall(int num)
{
uint64_t sc_null = *(uint64_t *)MKA(syscall_table_symbol);
return *(uint64_t*)MKA(syscall_table_symbol + (8 * num)) != sc_null ? SUCCEEDED : ENOSYS;
}Metadata
Metadata
Assignees
Labels
No labels