kayws426 / embox

Automatically exported from code.google.com/p/embox
0 stars 1 forks source link

pool should check object alignement in memory pool #632

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What new or enhanced feature are you proposing?
pool not checks pool_belong on freeing objects

pool_belong should check object alignment in memory (i.e.
 (obj - pool->memory) % pool->obj_size == 0
) 

What goals would this enhancement help you to achieve?
This could help catch memory allocation errors and pointer corruption

How are you going to implement the enhancement?

Original issue reported on code.google.com by drakon.m...@gmail.com on 5 Aug 2013 at 11:48

GoogleCodeExporter commented 9 years ago
fixed by r12091

Original comment by ki.stfu on 8 Jan 2014 at 8:58