Whamcloud - gitweb
LU-14385 utils: add range check to strtoul() in lfs.c 26/41726/4
authorJian Yu <yujian@whamcloud.com>
Tue, 23 Feb 2021 17:26:37 +0000 (09:26 -0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 6 Mar 2021 02:35:54 +0000 (02:35 +0000)
commitc8b1f4d886b71e1439eb8d521f282dbdf366ec26
treeeee9bbf306516f84f9e6d7b40b0817498fbfa160
parent0ab950762cdec28636b6033c50a2e563c28ba954
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.

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