summaryrefslogtreecommitdiffstats
path: root/src/alloc.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-10-06 12:37:01 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-10-06 12:37:01 -0400
commit054ef7f719ce6fd2167f1c1b4433feaa438bebfc (patch)
tree47d8e315d4bc5d3e125309a2782b84c83343830d /src/alloc.h
parentbcfe9c4e846bc97f97967c7df95e6b0a08a9a0ad (diff)
downloadbfs-054ef7f719ce6fd2167f1c1b4433feaa438bebfc.tar.xz
alloc: Test allocation size overflows
Diffstat (limited to 'src/alloc.h')
-rw-r--r--src/alloc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alloc.h b/src/alloc.h
index 5f0c423..fd3e5f0 100644
--- a/src/alloc.h
+++ b/src/alloc.h
@@ -132,11 +132,11 @@ void *zalloc(size_t align, size_t size);
/** Allocate memory for an array. */
#define ALLOC_ARRAY(type, count) \
- (type *)alloc(alignof(type), sizeof_array(type, count));
+ (type *)alloc(alignof(type), sizeof_array(type, count))
/** Allocate zeroed memory for an array. */
#define ZALLOC_ARRAY(type, count) \
- (type *)zalloc(alignof(type), sizeof_array(type, count));
+ (type *)zalloc(alignof(type), sizeof_array(type, count))
/** Allocate memory for a flexible struct. */
#define ALLOC_FLEX(type, member, count) \