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 the parser functions >> will store their result. >> >> If the `size` value was less than token size, parser will corrupt >> memory outsite of target buffer. >> >> The patch adds sizes validation. >> >> Fixes: d3f61b7bad20 ("app/testpmd: add flow item spec prefix length") >> Fixes: 8a03ab58cc0a ("app/testpmd: support flow integer") >> Fixes: 6df81b325fa4 ("app/testpmd: add items eth/vlan to flow command") >> Fixes: ef6e38550f07 ("app/testpmd: add items ipv4/ipv6 to flow command") >> Cc: sta...@dpdk.org >> >> Signed-off-by: Gregory Etelson <getel...@nvidia.com> >> > > Acked-by: Ferruh Yigit <ferruh.yi...@amd.com> > > Applied to dpdk-next-net/main, thanks. >
Dropped from tree, because of issue reported in following thread: https://inbox.dpdk.org/dev/4dfd536b-4f57-4d56-b864-a7c42c0fd...@amd.com/T/#m051054336b924b82aa34e2fb06ab7dd6fbb69ea5 Updated patchwork as rejected.