]> git.ipfire.org Git - thirdparty/bind9.git/commit
Remove ISC_MEM_ZERO and isc_mem_*x() API
authorOndřej Surý <ondrej@isc.org>
Wed, 23 Aug 2023 09:05:14 +0000 (11:05 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 31 Aug 2023 20:08:35 +0000 (22:08 +0200)
commitd9048b3db186650a8422b1cf0576449b0394759e
tree633a74f10269f6e344b05f871bdb32fd522238d9
parent8ac679a98081c50e91758da84466faf9685f369c
Remove ISC_MEM_ZERO and isc_mem_*x() API

Use the new isc_mem_c*() calloc-like API for allocations that are
zeroed.

In turn, this also fixes couple of incorrect usage of the ISC_MEM_ZERO
for structures that need to be zeroed explicitly.

There are few places where isc_mem_cput() is used on structures with a
flexible member (or similar).
21 files changed:
bin/tests/system/dyndb/driver/db.c
bin/tests/system/dyndb/driver/instance.c
bin/tests/system/dyndb/driver/syncptr.c
cocci/isc_mem_zero.spatch [deleted file]
lib/dns/dnstap.c
lib/dns/ipkeylist.c
lib/dns/journal.c
lib/dns/rbt-zonedb.c
lib/dns/rbt.c
lib/dns/rdataslab.c
lib/dns/resolver.c
lib/dns/rrl.c
lib/dns/zoneverify.c
lib/isc/histo.c
lib/isc/include/isc/mem.h
lib/isc/mem.c
lib/isc/netmgr/http.c
lib/isc/netmgr/netmgr.c
tests/bench/qpmulti.c
tests/isc/mem_test.c
tests/isc/ratelimiter_test.c