| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
MONITOR_HEAP is a define which is used to track memory allocations by file and line number. Altho this has been useful to memory allocation problems, the modern development environment have plethora of tools just for this purpose: valgrind, mtrace, electric fence, asan, msan etc. Thus there should be no need to carry in tree malloc debugging. Remove MONITOR_HEAP functionality.
Do not kneel in front of bad static analyzers and try to align your allocs. This method of extending/aligning over the native malloc uapi will render some of the memory/malloc analyzer detection useless, like not seeing out of bounds accesses on non aligned ones. Instead of catering to some bad analyzer, use native malloc and thus give full visibility to proper ones. If some architecture still needs aligment to long, it should be special cased and not taint the sane ones. Remove aligment padding from alloc(), return void ptrs like in native malloc and deny zero sized allocs.
| Back | FazBrowse Home | New Git URL |
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.