diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-06-12 01:15:03 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-06-12 01:15:03 +0200 |
commit | c22e01c9e91864bad0210bfc90ba4952e91dba2a (patch) | |
tree | ec793c7d254fc4f669bb88671a40c2ab3a8a34f5 /src | |
parent | 2b1c8500fcf510083a4cb7572cd99ad51bcff97b (diff) |
Mark bufalloc with __attribute__((alloc_size))
Diffstat (limited to 'src')
-rw-r--r-- | src/alloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.h b/src/alloc.h index 301971c..80e2384 100644 --- a/src/alloc.h +++ b/src/alloc.h @@ -8,6 +8,6 @@ /* Allocate a buffer of NMEMB elements of size SIZE. If PTR is non-null then reallocate the buffer it points to. Aborts on out-of-memory or overflow. */ void *bufalloc(void *ptr, size_t nmemb, size_t size) - __attribute__((returns_nonnull)); + __attribute__((returns_nonnull, alloc_size(2, 3))); #endif /* !ORYX_ALLOC_H */ |