]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix: dev: Stop using malloc_usable_size and malloc_size
authorOndřej Surý <ondrej@isc.org>
Mon, 26 Aug 2024 15:01:03 +0000 (15:01 +0000)
committerOndřej Surý <ondrej@isc.org>
Mon, 26 Aug 2024 15:01:03 +0000 (15:01 +0000)
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

Merge branch '4880-dont-use-malloc_usable_size' into 'main'

Closes #4880

See merge request isc-projects/bind9!9400


Trivial merge