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

Backport of MR !9400

Merge branch 'backport-4880-dont-use-malloc_usable_size-9.18' into 'bind-9.18'

See merge request isc-projects/bind9!9419


Trivial merge