Re: [dpdk-dev] [PATCH v2 3/3] malloc: fix potential dereferencing of NULL pointer

2018-04-27 Thread Burakov, Anatoly
On 27-Apr-18 4:57 PM, Van Haaren, Harry wrote: From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Anatoly Burakov Sent: Wednesday, April 25, 2018 11:16 AM To: dev@dpdk.org Cc: tho...@monjalon.net; Burakov, Anatoly Subject: [dpdk-dev] [PATCH v2 3/3] malloc: fix potential dereferencing of NULL

Re: [dpdk-dev] [PATCH v2 3/3] malloc: fix potential dereferencing of NULL pointer

2018-04-27 Thread Van Haaren, Harry
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Anatoly Burakov > Sent: Wednesday, April 25, 2018 11:16 AM > To: dev@dpdk.org > Cc: tho...@monjalon.net; Burakov, Anatoly > Subject: [dpdk-dev] [PATCH v2 3/3] malloc: fix potential dereferencing of NULL > pointer > &g

[dpdk-dev] [PATCH v2 3/3] malloc: fix potential dereferencing of NULL pointer

2018-04-25 Thread Anatoly Burakov
Previous code checked for both first/last elements being NULL, but if they weren't, the expectation was that they're both non-NULL, which will be the case under normal conditions, but may not be the case due to heap structure corruption. Coverity issue: 272566 Fixes: bb372060dad4 ("malloc: make h