From c44852846418d687027912d4150404feed0161f9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 7 Jul 2022 15:32:34 +0200 Subject: Use malloc by default but allow bounded alloca MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- config.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.mk') diff --git a/config.mk b/config.mk index 2062ea6..66efe55 100644 --- a/config.mk +++ b/config.mk @@ -6,3 +6,9 @@ CC = c99 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 CFLAGS = -Wall -O3 LDFLAGS = -s + +# You can add -DALLOCA_LIMIT=# to CPPFLAGS, where # is a size_t +# value, to put a limit on how large allocation the library is +# allowed to make with alloca(3). For buffers that can have any +# size this limit will be used if it wants to allocate a larger +# buffer. Choose 0 to use malloc(3) instead of alloca(3). -- cgit v1.2.3-70-g09d2