From 966049986a34c047daf558d18b3582f7123657e9 Mon Sep 17 00:00:00 2001 From: Dmitry Valter Date: Wed, 6 Mar 2024 17:17:54 +0000 Subject: vppinfra: fix array_mask_u32 underrun Properly handle small buffers in the AVX256 version of array_mask_u32. Type: fix Signed-off-by: Dmitry Valter Fixes: f62ed3f9c1ec3e8db36f63d6a54f46b7bea43723 Change-Id: Idf1cb43ccf37bd7c439d11e4f68fe30064c6d09a --- src/vppinfra/vector/array_mask.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vppinfra/vector') diff --git a/src/vppinfra/vector/array_mask.h b/src/vppinfra/vector/array_mask.h index ba22d79560f..3d4a82ac01b 100644 --- a/src/vppinfra/vector/array_mask.h +++ b/src/vppinfra/vector/array_mask.h @@ -57,6 +57,7 @@ clib_array_mask_u32 (u32 *src, u32 mask, u32 n_elts) u32x4 mask4 = u32x4_splat (mask); *(u32x4u *) src &= mask4; *(u32x4u *) (src + n_elts - 4) &= mask4; + return; } #endif -- cgit 1.2.3-korg