[dpdk-stable] [dpdk-dev] [PATCH v2 1/1] app/testpmd: fix invalid memory access
Ferruh Yigit
ferruh.yigit at intel.com
Tue Oct 19 18:11:48 CEST 2021
On 10/12/2021 9:33 AM, skori at marvell.com wrote:
> From: Sunil Kumar Kori <skori at marvell.com>
>
> During parsing of DSCP entries, memory is allocated and assigned
> to *dscp_table. Later on, same memory is accessed using
> *dscp_table[i++].
>
> Due to higher precedence for array subscript, dscp_table[i++] will
> be executed first which actually does not point to the same memory
> which was allocated previously for DSCP table entries.
>
Of course, thanks for the fix.
> Cc: stable at dpdk.org
>
> Fixes: 459463ae6c26 ("app/testpmd: fix memory allocation for DSCP table")
>
> Signed-off-by: Sunil Kumar Kori <skori at marvell.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>
Applied to dpdk-next-net/main, thanks.
More information about the stable
mailing list