diff options
Diffstat (limited to 'thirdparty/pcre2/src/pcre2_jit_misc.c')
-rw-r--r-- | thirdparty/pcre2/src/pcre2_jit_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/pcre2/src/pcre2_jit_misc.c b/thirdparty/pcre2/src/pcre2_jit_misc.c index ec924e0f9b..e57afad065 100644 --- a/thirdparty/pcre2/src/pcre2_jit_misc.c +++ b/thirdparty/pcre2/src/pcre2_jit_misc.c @@ -135,7 +135,7 @@ return NULL; pcre2_jit_stack *jit_stack; -if (startsize < 1 || maxsize < 1) +if (startsize == 0 || maxsize == 0 || maxsize > SIZE_MAX - STACK_GROWTH_RATE) return NULL; if (startsize > maxsize) startsize = maxsize; |