]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 341802: Validate the string size parameter passed to -s.
authorjhb <jhb@FreeBSD.org>
Wed, 2 Jan 2019 20:49:41 +0000 (20:49 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 2 Jan 2019 20:49:41 +0000 (20:49 +0000)
commita929f2f04e63309dd7a1587da1431ee83fe201c2
tree58da6cd8b4a80bc3cb23857cec7299e13c7707c5
parent5c8a34df3f7503c8fa5209c4fb49708cac622723
MFC 341802: Validate the string size parameter passed to -s.

Use strtonum() to reject negative sizes instead of core dumping.

PR: 232206
usr.bin/truss/main.c