]> granicus.if.org Git - strace/commit
Check -s argument early
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Jun 2017 22:30:19 +0000 (22:30 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Jun 2017 22:30:19 +0000 (22:30 +0000)
commit11621507fbbc4b231556c0e0488d853178d1e71f
treee2206298c30460df1c3477bb30825b8f131aec7b
parent4a2a9a7cb1d0e0fc770fa6400b009f8319c52d96
Check -s argument early

* util.c (printstr_ex): Move the check that -s argument
does not exceed -1U / 4 ...
* strace.c (init): ... here.
* tests/options-syntax.test: Check it.
strace.c
tests/options-syntax.test
util.c