]> git.ipfire.org Git - thirdparty/bind9.git/commit
[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)
commitcccd26e942c3157702fc05dfca1e72827ee5079f
tree024d0616964c06b31cbed3bf47a7ec2105e65994
parent38a8fc87c59ba055789d3190790e2e493d1e0b48
parent015b390f62d77192486b4950355df530976f4d40
[9.18] 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

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