Re: [PATCH v5 2/3] net/ice: refactor raw pattern parsing function

2024-07-22 Thread Bruce Richardson
On Mon, Jul 22, 2024 at 01:50:45PM +, Vladimir Medvedkin wrote: > Replace strlen with more secure strnlen in ice_hash_parse_raw_pattern. > > Signed-off-by: Vladimir Medvedkin > I believe there are quite a number of other small things in this function that could do with improvement e.g. the p

[PATCH v5 2/3] net/ice: refactor raw pattern parsing function

2024-07-22 Thread Vladimir Medvedkin
Replace strlen with more secure strnlen in ice_hash_parse_raw_pattern. Signed-off-by: Vladimir Medvedkin tmp --- drivers/net/ice/ice_hash.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/net/ice/ice_hash.c b/drivers/net/ice/ice_hash.c index 6b3095e2c5..a