Re: [PATCH v2] crypto: qat - use simple_strtoull to improve qat_uclo_parse_num
From: Giovanni Cabiddu
Date: Mon Oct 27 2025 - 05:04:45 EST
On Sun, Oct 26, 2025 at 02:57:07AM +0100, Thorsten Blum wrote:
> Replace the manual string copying and parsing logic with a call to
> simple_strtoull() to simplify and improve qat_uclo_parse_num().
>
> Ensure that the parsed number does not exceed UINT_MAX, and add an
> approximate upper-bound check (no more than 19 digits) to guard against
> overflow.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
Acked-by: Giovanni Cabiddu <giovanni.cabiddu@xxxxxxxxx>
Thanks,
--
Giovanni