]> git.ipfire.org Git - thirdparty/bind9.git/commit
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)
commitf99da39934dd8260cfe9c699b6910c6629534c83
tree69c942dee8f943333a3ca966e4d4cf9ce24c49e4
parentb37c15d244c97796bc317316d76cb90fd6534345
parentd61712d14e5aeb179b3ea54a71a599927425732a
fix: dev: Stop using malloc_usable_size and malloc_size

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