mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
Merge pull request #1117 from ailin-nemui/theme-align
limit special-vars alignment memory to not exhaust fuzzer
This commit is contained in:
commit
1e9cd62aac
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue