lib/: Use [[gnu::alloc_size(...)]] on allocation functions

Suggested-by: Martin Uecker <uecker@tugraz.at>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2024-06-29 18:43:47 +02:00
committed by Serge Hallyn
parent 5111e5ed1b
commit ba3a51e90f
6 changed files with 7 additions and 0 deletions
+1
View File
@@ -20,6 +20,7 @@
)
ATTR_ALLOC_SIZE(2, 3)
ATTR_MALLOC(free)
inline void *reallocarrayf(void *p, size_t nmemb, size_t size);