]> granicus.if.org Git - strace/commit
tests: check decoding of modify_ldt with for 4-byte-available user_desc
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 8 Jan 2018 17:46:32 +0000 (18:46 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 10 Jan 2018 01:57:53 +0000 (01:57 +0000)
commit692d8a6e54ab10064838de60bd67206c7f1275ec
treee40a4d9757f98c2d1a7ca98d8eb00e60f246e619
parent0c7e458044b626d47b3459e5b418ff7ba45d1102
tests: check decoding of modify_ldt with for 4-byte-available user_desc

Since there is possibility now that strace read only entry_number field
of the user_desc struct, let's check that it doesn't do it with
modify_ldt syscall.

* tests/modify_ldt.c (main): Add 4-byte-sized tail_alloc'ed variable.
Try to provide it as an argument to modify_ldt.
tests/modify_ldt.c