]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add isc_mem_callocate() for safer array allocation
authorTony Finch <fanf@isc.org>
Tue, 6 Jun 2023 14:15:31 +0000 (15:15 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 27 Jun 2023 10:38:09 +0000 (12:38 +0200)
commit81d73600c1c7969fae5f7ea34ba8446199df4f74
treec3132575b6c878c3f0fa582a396a2d114b3327a0
parent7474cad4ad9d2604b0db4f9c01052965a366b769
Add isc_mem_callocate() for safer array allocation

As well as clearing the fresh memory, `calloc()`-like functions must
ensure that the count and size do not overflow when multiplied.

Use `isc_mem_callocate()` in `isc__uv_calloc()`.
lib/isc/include/isc/mem.h
lib/isc/mem.c
lib/isc/uv.c