Do not sign-extend siginfo_t.si_syscall
* printsiginfo.c (print_si_info): Explicitly cast si_syscall member of siginfo_t that has type "int" to "unsigned int", to avoid sign extension when passed to syscall_name function.
This commit is contained in:
parent
50a26514a5
commit
49955948fb
@ -198,7 +198,7 @@ print_si_info(const siginfo_t *sip, bool verbose)
|
||||
case SIGSYS:
|
||||
tprintf(", si_call_addr=%#lx, si_syscall=__NR_%s, si_arch=",
|
||||
(unsigned long) sip->si_call_addr,
|
||||
syscall_name(sip->si_syscall));
|
||||
syscall_name((unsigned) sip->si_syscall));
|
||||
printxval(audit_arch, sip->si_arch, "AUDIT_ARCH_???");
|
||||
break;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user