Re: [dpdk-dev] [PATCH v2] eal/windows: fix out-of-memory check

2020-02-21 Thread Thomas Monjalon
18/02/2020 22:52, Ranjit Menon: > On 2/17/2020 3:56 PM, Dmitry Kozlyuk wrote: > > Check vsnprintf() result to prevent calling malloc() with negative size. > > Check actual malloc() result and terminate asprintf() with documented > > error code to prevent the use of NULL pointer. > > > > Fixes: e842

Re: [dpdk-dev] [PATCH v2] eal/windows: fix out-of-memory check

2020-02-18 Thread Ranjit Menon
On 2/17/2020 3:56 PM, Dmitry Kozlyuk wrote: Check vsnprintf() result to prevent calling malloc() with negative size. Check actual malloc() result and terminate asprintf() with documented error code to prevent the use of NULL pointer. Fixes: e8428a9d8 ("eal/windows: add some basic functions and m