1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-16 06:25:24 +00:00

limit special-vars alignment memory to not exhaust fuzzer

This commit is contained in:
ailin-nemui 2019-08-30 20:30:02 +02:00
parent 991e24fb27
commit 887950db0f

View File

@ -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;