Re: [dpdk-dev] [PATCH v3] mem: fix malloc_elem resize with padding

2017-06-28 Thread Thomas Monjalon
20/06/2017 12:18, Sergio Gonzalez Monroy: > On 08/06/2017 20:12, Jamie Lavigne wrote: > > Currently when a malloc_elem is split after resizing, any padding > > present in the elem is ignored. This causes the resized elem to be too > > small when padding is present, and user data can overwrite the

Re: [dpdk-dev] [PATCH v3] mem: fix malloc_elem resize with padding

2017-06-20 Thread Sergio Gonzalez Monroy
On 08/06/2017 20:12, Jamie Lavigne wrote: Currently when a malloc_elem is split after resizing, any padding present in the elem is ignored. This causes the resized elem to be too small when padding is present, and user data can overwrite the beginning of the following malloc_elem. Solve this by

[dpdk-dev] [PATCH v3] mem: fix malloc_elem resize with padding

2017-06-08 Thread Jamie Lavigne
Currently when a malloc_elem is split after resizing, any padding present in the elem is ignored. This causes the resized elem to be too small when padding is present, and user data can overwrite the beginning of the following malloc_elem. Solve this by including the size of the padding when comp