johnsonjh / duma

duma: Detect Unintended Memory Access (D.U.M.A.) - A Red-Zone memory allocator
https://github.com/johnsonjh/duma
GNU General Public License v2.0
100 stars 10 forks source link

malloc_usable_size: Add implementation of the function #212

Closed petris closed 9 months ago

petris commented 9 months ago

malloc_usable_size returns the size of the allocated chunk. We must provide our own implementation as the size we allocated differs from what libc would allocate.

codeclimate[bot] commented 9 months ago

Code Climate has analyzed commit ee575fec and detected 0 issues on this pull request.

View more on Code Climate.

johnsonjh commented 9 months ago

@petris Thanks for the contribution, tested and working.