summaryrefslogtreecommitdiff
path: root/tests/CuSkip.pm
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-11-14 09:34:15 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2021-11-14 12:13:28 -0800
commita0feba0a48de0d6f55c0feaa5353afdcf2b24474 (patch)
tree333a3b4ea2fff0f7bbecd678679e96809f4a4515 /tests/CuSkip.pm
parentae9780c06b7fdb1aff52712f57b4571f23dfa743 (diff)
downloadgrep-a0feba0a48de0d6f55c0feaa5353afdcf2b24474.tar.gz
grep: improve memory exhaustion checking with -P
* src/pcresearch.c (struct pcre_comp): New member gcontext. (private_malloc, private_free): New functions. (jit_exec): It is OK to call pcre2_jit_stack_free (NULL), so simplify. Use gcontext for allocation. Check for pcre2_jit_stack_create failure, since sljit bypasses private_malloc. Redo to avoid two ‘continue’s. (Pcompile): Create and use gcontext.
Diffstat (limited to 'tests/CuSkip.pm')
0 files changed, 0 insertions, 0 deletions