1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-21 03:14:16 -04:00

Merge pull request #1117 from ailin-nemui/theme-align

limit special-vars alignment memory to not exhaust fuzzer
This commit is contained in:
ailin-nemui 2019-08-30 21:20:33 +02:00 committed by GitHub
commit 1e9cd62aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;