]> granicus.if.org Git - strace/commit
syscall.c: add sanity check for the target personality number
authorEugene Syromyatnikov <evgsyr@gmail.com>
Tue, 16 Jan 2018 16:38:35 +0000 (17:38 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 16 Jan 2018 22:54:38 +0000 (22:54 +0000)
commita4886a7f99db432470d6737c90c3845a5feb5ecd
treea0a6a6f26ad99793fc390604d2e28b1019d593f7
parent1fd3b7e30a95a13d8f1ef2827722cbce8c60741f
syscall.c: add sanity check for the target personality number

We can never be cautious enough.

* defs.h (set_personality): Change argument type to unsigned int.
* syscall.c (set_personality): Change argument type to unsigned int,
check whether requested personality is sane, die otherwise.
defs.h
syscall.c