Re: [dpdk-dev] [PATCH] net: check that seg is valid before dereference

2020-09-29 Thread Chas Williams
om> >> Subject: [dpdk-dev] [PATCH] net: check that seg is valid before dereference >> >> If the overall pkt_len and segment lengths are out of agreement, it is >> possible >> for the seg to be NULL after the loop. Add assert to check this condition in >>

Re: [dpdk-dev] [PATCH] net: check that seg is valid before dereference

2020-09-28 Thread wangyunjian
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Chas Williams > Sent: Monday, September 28, 2020 11:32 PM > To: dev@dpdk.org > Cc: olivier.m...@6wind.com; Chas Williams <3ch...@gmail.com> > Subject: [dpdk-dev] [PATCH] net: check

[dpdk-dev] [PATCH] net: check that seg is valid before dereference

2020-09-28 Thread Chas Williams
If the overall pkt_len and segment lengths are out of agreement, it is possible for the seg to be NULL after the loop. Add assert to check this condition in debug builds. Fixes: c442fed81bb9 ("net: add function to calculate checksum in mbuf") Signed-off-by: Chas Williams <3ch...@gmail.com> --- l