Re: [PATCH] app/testpmd: add size validation to token parsers

2024-02-09 Thread Ferruh Yigit
On 2/8/2024 2:45 PM, Ferruh Yigit wrote: > On 11/11/2023 7:13 AM, Gregory Etelson wrote: >> parse_prefix(), parse_int(), parse_mac_addr(), >> parse_ipv4_addr() and parse_ipv6_addr() unconditionally overwrite >> the `size` parameter with token size. >> The `size` parameter references a buffer where

Re: [PATCH] app/testpmd: add size validation to token parsers

2024-02-08 Thread Ferruh Yigit
On 11/11/2023 7:13 AM, Gregory Etelson wrote: > parse_prefix(), parse_int(), parse_mac_addr(), > parse_ipv4_addr() and parse_ipv6_addr() unconditionally overwrite > the `size` parameter with token size. > The `size` parameter references a buffer where the parser functions > will store their result.

[PATCH] app/testpmd: add size validation to token parsers

2023-11-10 Thread Gregory Etelson
parse_prefix(), parse_int(), parse_mac_addr(), parse_ipv4_addr() and parse_ipv6_addr() unconditionally overwrite the `size` parameter with token size. The `size` parameter references a buffer where the parser functions will store their result. If the `size` value was less than token size, parser w