]> git.ipfire.org Git - thirdparty/suricata.git/commit
calloc: Use nmemb with SCCalloc 9858/head
authorJeff Lucovsky <jlucovsky@oisf.net>
Tue, 21 Nov 2023 13:55:28 +0000 (08:55 -0500)
committerJeff Lucovsky <jlucovsky@oisf.net>
Tue, 21 Nov 2023 15:22:27 +0000 (10:22 -0500)
commitec1482cf4811b74715c3ce4bd35dc1c70680f01d
tree01a379b6f06424e09de590cbe2de933f22f864d3
parent193e0ea1a9aab2f735399ee771340337ca5cfcb1
calloc: Use nmemb with SCCalloc

This commit modifies calls to SCCalloc that had a member count of 1 and
a size count calculated as: element_count * sizeof(element).
14 files changed:
src/app-layer-detect-proto.c
src/detect-engine-build.c
src/detect-engine-siggroup.c
src/detect-engine.c
src/util-bloomfilter-counting.c
src/util-hash.c
src/util-hashlist.c
src/util-mpm-ac-bs.c
src/util-mpm-ac-ks.c
src/util-mpm-ac.c
src/util-mpm-hs.c
src/util-profiling-keywords.c
src/util-profiling-rules.c
src/util-storage.c