Re: [dpdk-dev] [PATCH v2] bitmap: fix buffer overrun in bitmap init function

2021-06-08 Thread Dumitrescu, Cristian
> -Original Message- > From: Andrew Rybchenko > Sent: Wednesday, June 2, 2021 10:49 AM > To: Dumitrescu, Cristian > Cc: dev@dpdk.org; Ivan Ilchenko ; > sta...@dpdk.org; Andy Moreton > Subject: [PATCH v2] bitmap: fix buffer overrun in bitmap init function > > From: Ivan Ilchenko > >

[dpdk-dev] [PATCH v2] bitmap: fix buffer overrun in bitmap init function

2021-06-02 Thread Andrew Rybchenko
From: Ivan Ilchenko Bitmap initialization function is allowed to memset() caller-provided buffer with number of bytes exceeded this buffer size. This happens due to wrong comparison sign between buffer size and number of bytes required to initialize bitmap. Fixes: 602c9ca33a4 ("sched: bitmap is