]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The strtol(3) family of functions would set errno when it hits one.
authorXin LI <delphij@FreeBSD.org>
Thu, 25 Sep 2014 22:37:27 +0000 (22:37 +0000)
committerXin LI <delphij@FreeBSD.org>
Thu, 25 Sep 2014 22:37:27 +0000 (22:37 +0000)
commit9e4ed37219b552bbf01b793f758d87afc2f6593e
treeed6a16025fe029b95c9ead46225b9256588a1a84
parent97d15a9372c4cff75a11e0d6a24d37211400a06e
The strtol(3) family of functions would set errno when it hits one.
Check errno and handle it as invalid input.

Obtained from: HardenedBSD
Submitted by: David CARLIER <devnexen@gmail.com>
MFC after: 2 weeks
sbin/sysctl/sysctl.c