Re: [dpdk-dev] [PATCH v2] lib/librte_power: fix using variables before validity check

2021-05-12 Thread Thomas Monjalon
> > In function power_guest_channel_read_msg, 'lcore_id' is used before > > validity check, which may cause buffer 'global_fds' accessed by index > > 'lcore_id' overflow. > > > > This patch moves the validity check of 'lcore_id' before the 'lcore_id' > > being used for the first time. > > > > Fixes

Re: [dpdk-dev] [PATCH v2] lib/librte_power: fix using variables before validity check

2021-05-12 Thread David Hunt
On 12/5/2021 8:14 AM, Min Hu (Connor) wrote: 在 2021/5/12 15:03, David Hunt 写道: On 12/5/2021 3:19 AM, Min Hu (Connor) wrote: From: HongBo Zheng In function power_guest_channel_read_msg, 'lcore_id' is used before validity check, which may cause buffer 'global_fds' accessed by index 'lcore_

Re: [dpdk-dev] [PATCH v2] lib/librte_power: fix using variables before validity check

2021-05-12 Thread Min Hu (Connor)
在 2021/5/12 15:03, David Hunt 写道: On 12/5/2021 3:19 AM, Min Hu (Connor) wrote: From: HongBo Zheng In function power_guest_channel_read_msg, 'lcore_id' is used before validity check, which may cause buffer 'global_fds' accessed by index 'lcore_id' overflow. This patch moves the validity ch

Re: [dpdk-dev] [PATCH v2] lib/librte_power: fix using variables before validity check

2021-05-12 Thread David Hunt
On 12/5/2021 3:19 AM, Min Hu (Connor) wrote: From: HongBo Zheng In function power_guest_channel_read_msg, 'lcore_id' is used before validity check, which may cause buffer 'global_fds' accessed by index 'lcore_id' overflow. This patch moves the validity check of 'lcore_id' before the 'lcore_i

[dpdk-dev] [PATCH v2] lib/librte_power: fix using variables before validity check

2021-05-11 Thread Min Hu (Connor)
From: HongBo Zheng In function power_guest_channel_read_msg, 'lcore_id' is used before validity check, which may cause buffer 'global_fds' accessed by index 'lcore_id' overflow. This patch moves the validity check of 'lcore_id' before the 'lcore_id' being used for the first time. Fixes: 9dc843e