]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: address a few remaining calloc(size, n) cases
authorWilly Tarreau <w@1wt.eu>
Sat, 10 Feb 2024 10:35:07 +0000 (11:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 10 Feb 2024 10:37:27 +0000 (11:37 +0100)
commitab8928b9dbbae77602b1cd50b0f7189835df9164
tree90fb0c0e8ddbc5b0cdc023de4889ea3355857a6b
parent4559470728bf12401819814647e144367a3737eb
BUILD: address a few remaining calloc(size, n) cases

In issue #2427 Ilya reports that gcc-14 rightfully complains about
sizeof() being placed in the left term of calloc(). There's no impact
but it's a bad pattern that gets copy-pasted over time. Let's fix the
few remaining occurrences (debug.c, halog, udp-perturb).

This can be backported to all branches, and the irrelevant parts dropped.
admin/halog/halog.c
dev/udp/udp-perturb.c
src/debug.c