Skip to content

fix: dev: Stop using malloc_usable_size and malloc_size

Ondřej Surý requested to merge 4880-dont-use-malloc_usable_size into main

The malloc_usable_size() can return size larger than originally allocated and when these sizes disagree the fortifier enabled by _FORTIFY_SOURCE=3 detects overflow and stops the named execution abruptly. Stop using these convenience functions as they are primary used for introspection-only.

Closes #4880 (closed)

Edited by Ondřej Surý

Merge request reports