]> granicus.if.org Git - strace/commit
Fix decoding of prctl/arch_prctl operation argument
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 22:19:31 +0000 (22:19 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 22:41:20 +0000 (22:41 +0000)
commitb8eec608faee56727da2d4b81317064a0f6851f3
treee8a06418b52951f4b74077acf2c7f1e7ed9bb89f
parentba62f34243109ddf98373d340addda5e3d0b1337
Fix decoding of prctl/arch_prctl operation argument

Consistently treat operation argument of prctl/arch_prctl syscalls
as int to match the kernel behaviour.

* prctl.c (SYS_FUNC(prctl), SYS_FUNC(arch_prctl)): Assign 1st argument
of syscalls to a variable of type unsigned int and use it in all
subsequent checks and lookups.
prctl.c