From 887950db0f728f1bec9d4a7aea03b7c0fce7b8ad Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Fri, 30 Aug 2019 20:30:02 +0200 Subject: [PATCH] limit special-vars alignment memory to not exhaust fuzzer --- src/core/special-vars.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/special-vars.c b/src/core/special-vars.c index d84912d2..ef56e2e1 100644 --- a/src/core/special-vars.c +++ b/src/core/special-vars.c @@ -33,7 +33,11 @@ #define isarg(c) \ (i_isdigit(c) || (c) == '*' || (c) == '~' || (c) == '-') +#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION /* fuzzer should not exhaust memory here */ +#define ALIGN_MAX 512 +#else #define ALIGN_MAX 222488 +#endif static SPECIAL_HISTORY_FUNC history_func = NULL;