From aa1746a90d864e313ab8965637cff382c2b10130 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 4 Jan 2022 10:04:26 -0500 Subject: [PATCH] alloc_size attribute for legacy valloc function --- include/h_malloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/h_malloc.h b/include/h_malloc.h index 50001e5..fdc7083 100644 --- a/include/h_malloc.h +++ b/include/h_malloc.h @@ -80,7 +80,7 @@ int h_malloc_info(int options, FILE *fp); __attribute__((malloc)) __attribute__((alloc_size(2))) __attribute__((alloc_align(1))) void *h_memalign(size_t alignment, size_t size); #ifndef __ANDROID__ -__attribute__((malloc)) void *h_valloc(size_t size); +__attribute__((malloc)) __attribute__((alloc_size(1))) void *h_valloc(size_t size); __attribute__((malloc)) void *h_pvalloc(size_t size); #endif #ifdef __GLIBC__