Whamcloud - gitweb
LU-14385 utils: add range check to strtol() in lfs.c
authorJian Yu <yujian@whamcloud.com>
Thu, 11 Mar 2021 23:10:29 +0000 (15:10 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 22 Jan 2022 08:25:39 +0000 (08:25 +0000)
commit61e76174084066eace3b9cab0d5da096dd05daec
tree3aebe8c803fd3aabe32a28016c362fdd9cb24756
parent8078330f6bfbf4131389e16577568a259f65adf2
LU-14385 utils: add range check to strtol() in lfs.c

Most of the strtol() and strtoll() functions called
in lfs.c did not check the range of the return value.
This patch fixes those issues.

Lustre-change: https://review.whamcloud.com/41756
Lustre-commit: b217593a9e68d15e34c257b8d9485d34d3ccbbec

Test-Parameters: trivial
Change-Id: I9ff51662bf0d2320961a7838da08f09552e9ef1e
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46265
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/utils/lfs.c