Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jit: use correct type when checking for max value (#73)
eb42305 (jit: avoid integer wraparound in stack size definition (#42), 2021-11-19) introduces a check to avoid an integer overflow when allocating stack size for JIT. Unfortunately the maximum value was using PCRE2_SIZE_MAX, eventhough the variable is of type size_t, so correct it. Practically; the issue shouldn't affect the most common configurations where both values are the same, and it will be unlikely that there would be a configuration where PCRE2_SIZE_MAX > SIZE_MAX, hence the mistake is unlikely to have reintroduced the original bug and this change should be therefore mostly equivalent. Signed-off-by: Carlo Marcelo Arenas Belón <[email protected]>
- Loading branch information