mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
limit special-vars alignment memory to not exhaust fuzzer
This commit is contained in:
parent
991e24fb27
commit
887950db0f
@ -33,7 +33,11 @@
|
|||||||
#define isarg(c) \
|
#define isarg(c) \
|
||||||
(i_isdigit(c) || (c) == '*' || (c) == '~' || (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
|
#define ALIGN_MAX 222488
|
||||||
|
#endif
|
||||||
|
|
||||||
static SPECIAL_HISTORY_FUNC history_func = NULL;
|
static SPECIAL_HISTORY_FUNC history_func = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user