Hello!
On 2021-07-03 04:32, Xueming(Steven) Li wrote:
+ if (i == n_entries)
+ break;
}
out:
+ info->nb_ranges = i;
Here info maybe NULL.
Good catch, thanks for noticing!
faf3bd901d..d2b27c351f 100644
--- a/lib/ethdev/rte_ethdev.h
+++ b/lib
> -Original Message-
> From: Viacheslav Galaktionov
> Sent: Saturday, July 3, 2021 6:01 PM
> To: Xueming(Steven) Li
> Cc: Andrew Rybchenko ; Matan Azrad
> ; Shahaf Shuler
> ; Slava Ovsiienko ;
> NBU-Contact-Thomas Monjalon ;
> Ferruh Yigit ; dev@dpdk.org; sta...@dpdk.org
> Subject: R
Hi
> -Original Message-
> From: Andrew Rybchenko
> Sent: Friday, July 2, 2021 10:23 PM
> To: Matan Azrad ; Shahaf Shuler ; Slava
> Ovsiienko ; NBU-
> Contact-Thomas Monjalon ; Ferruh Yigit
> ; Xueming(Steven) Li
>
> Cc: dev@dpdk.org; Viacheslav Galaktionov
> ; sta...@dpdk.org
> Subjec
From: Viacheslav Galaktionov
In its current state, the API can overflow the user-passed buffer if a new
representor range appears between function calls.
In order to solve this problem, augment the representor info structure with
the numbers of allocated and initialized ranges. This way the user
4 matches
Mail list logo