Whamcloud - gitweb
LU-14385 utils: add range check to strtoul() in lfs.c
authorJian Yu <yujian@whamcloud.com>
Tue, 23 Feb 2021 17:26:37 +0000 (09:26 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 22 Jan 2022 08:25:34 +0000 (08:25 +0000)
commit8078330f6bfbf4131389e16577568a259f65adf2
treebcd8b441ffcc6d2cc522a29b955b1918415e0e84
parentd07c9cdc4320d7e21bdb2ab7d8c76a8169ce8df3
LU-14385 utils: add range check to strtoul() in lfs.c

Most of the strtoul() 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/41726
Lustre-commit: c8b1f4d886b71e1439eb8d521f282dbdf366ec26

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