]> granicus.if.org Git - strace/commit
tests/nsyscalls.c: change the type of syscall arguments to kernel_ulong_t
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 20 Jul 2016 10:35:56 +0000 (13:35 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 20 Jul 2016 11:16:37 +0000 (11:16 +0000)
commit3b6bc9b40dc01f6d0ea9e8fbd2ec51eefa17caf3
tree61ad07c1dc3c4162ca3f58b640757929d2b60906
parent9bd2382f2173e39ad8159c690c4e52d2157ceb2a
tests/nsyscalls.c: change the type of syscall arguments to kernel_ulong_t

As most syscalls on x32 and mips n32 are actually 64-bit,
check that 64-bit syscall arguments are decoded properly.

This also workarounds x32 gcc sign extension bug
reported by Eugene Syromyatnikov at
https://sourceforge.net/p/strace/mailman/message/35150860/

* tests/nsyscalls.c: Include "kernel_types.h".
(main): Change the type of syscall arguments to kernel_ulong_t.
tests/nsyscalls.c