Re: [dpdk-dev] [PATCH] net/txgbe: fix null pointer check problem

2021-04-29 Thread Ferruh Yigit
On 4/29/2021 4:35 AM, Jiawen Wu wrote: > On April 27, 2021 11:31 PM, Ferruh Yigit wrote: >> On 4/25/2021 1:54 PM, Min Hu (Connor) wrote: >>> From: HongBo Zheng >>> >>> In function cons_parse_ntuple_filter, item->spec and item->mask should >>> be confirmed not null before use memcmp on it, current

Re: [dpdk-dev] [PATCH] net/txgbe: fix null pointer check problem

2021-04-28 Thread Jiawen Wu
On April 27, 2021 11:31 PM, Ferruh Yigit wrote: > On 4/25/2021 1:54 PM, Min Hu (Connor) wrote: > > From: HongBo Zheng > > > > In function cons_parse_ntuple_filter, item->spec and item->mask should > > be confirmed not null before use memcmp on it, current judgement > > (item->spec || item->mask) j

Re: [dpdk-dev] [PATCH] net/txgbe: fix null pointer check problem

2021-04-27 Thread Ferruh Yigit
On 4/25/2021 1:54 PM, Min Hu (Connor) wrote: > From: HongBo Zheng > > In function cons_parse_ntuple_filter, item->spec and item->mask > should be confirmed not null before use memcmp on it, current > judgement (item->spec || item->mask) just can confirm item->spec > or item->mask is not null, and

[dpdk-dev] [PATCH] net/txgbe: fix null pointer check problem

2021-04-25 Thread Min Hu (Connor)
From: HongBo Zheng In function cons_parse_ntuple_filter, item->spec and item->mask should be confirmed not null before use memcmp on it, current judgement (item->spec || item->mask) just can confirm item->spec or item->mask is not null, and cause null pointer be used in memcmp. This patch fix th