M_TEMP trouble in 13.0-CURRENT #0 r355131M

Hans Petter Selasky hps at selasky.org
Thu Jan 9 15:38:37 UTC 2020


On 2020-01-09 16:16, Mark Johnston wrote:
>> Also you should audit the code for zero-sized allocations, because upon
>> alloc, zero-sized is not counted, while on free it is.
> Can you explain further?  A zero-sized allocation should be rounded up to
> 16 bytes in all paths.
> 

If the zero-sized allocation is rounded to 16-bytes, I don't see any 
problem.

Thank you!

--HPS


More information about the freebsd-current mailing list