[dm-devel] [dm- devel][PATCH] checker: add input check of state in checker_state_name func
Martin Wilck
mwilck at suse.com
Mon Aug 10 10:17:58 UTC 2020
On Mon, 2020-08-10 at 09:14 +0800, Zhiqiang Liu wrote:
> In checker_state_name func, we donot check whether input i
> is valid. It may cause array access violation problem.
>
> Signed-off-by: Zhiqiang Liu <liuzhiqiang26 at huawei.com>
> ---
> libmultipath/checkers.c | 26 +++++++++++++++-----------
> libmultipath/checkers.h | 3 ++-
> 2 files changed, 17 insertions(+), 12 deletions(-)
>
Reviewed-by: Martin Wilck <mwilck at suse.com>
Thanks for the patch.
Btw, are you currently reviewing multipath-tools with coverity or some
similar tool?
Martin
More information about the dm-devel
mailing list