[PATCH v2 1/6] eal: reject non-numeric input in str to size
Bruce Richardson
bruce.richardson at intel.com
Fri Mar 13 17:16:19 CET 2026
On Fri, Mar 13, 2026 at 04:06:32PM +0000, Anatoly Burakov wrote:
> Add a check in rte_str_to_size validating that strtoull() consumed at least
> one character. If not, set errno to EINVAL and return 0.
>
> Also move rte_str_to_size unit coverage from malloc tests to
> string_autotest, where string utility tests belong, and add a new test to
> test for handling invalid numerical input.
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list