Re: [dm-devel] [dm- devel][PATCH] vector: add lower bound check of E in VECTOR_SLOT

2020-08-03 Thread Benjamin Marzinski
On Mon, Aug 03, 2020 at 10:41:48AM +0800, Zhiqiang Liu wrote: > > In VECTOR_SLOT(V, E), we add the lower bound check of E. > E cannot be less than zero. > > Signed-off-by: Zhiqiang Liu Reviewed-by: Benjamin Marzinski > --- > libmultipath/vector.h | 2 +- > 1 file changed, 1 insertion(+), 1 d

[dm-devel] [dm- devel][PATCH] vector: add lower bound check of E in VECTOR_SLOT

2020-08-02 Thread Zhiqiang Liu
In VECTOR_SLOT(V, E), we add the lower bound check of E. E cannot be less than zero. Signed-off-by: Zhiqiang Liu --- libmultipath/vector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmultipath/vector.h b/libmultipath/vector.h index e16ec461..cdb94b24 100644 --- a/lib