Re: [dpdk-dev] [PATCH 5/7] vhost: validate index in inflight API

2020-10-21 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Tuesday, October 20, 2020 1:34 AM > To: dev@dpdk.org; Xia, Chenbo ; amore...@redhat.com > Cc: Maxime Coquelin ; sta...@dpdk.org > Subject: [PATCH 5/7] vhost: validate index in inflight API > > This patch validates the queue index parame

[dpdk-dev] [PATCH 5/7] vhost: validate index in inflight API

2020-10-19 Thread Maxime Coquelin
This patch validates the queue index parameter, in order to ensure neither out-of-bound accesses nor NULL pointer dereferencing happen. Fixes: 4d891f77ddfa ("vhost: add APIs to get inflight ring") Cc: sta...@dpdk.org Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost.c | 10 +- 1