diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-03-11 17:29:08 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-03-11 17:29:08 +0000 |
commit | 3bf3763f680dc980cda4135c91d85d8fe9ab2bb6 (patch) | |
tree | 58888bb81c0427acf6b346a83691c9c19f437f97 /doc/html/pcre2test.html | |
parent | 39dbe12dc29bda4cc1b9790c4bda6f81cb038927 (diff) | |
download | pcre2-3bf3763f680dc980cda4135c91d85d8fe9ab2bb6.tar.gz |
Fix crash in pcre2_substitute() with NULL match context.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1081 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'doc/html/pcre2test.html')
-rw-r--r-- | doc/html/pcre2test.html | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/doc/html/pcre2test.html b/doc/html/pcre2test.html index 8f35acc..083d5cc 100644 --- a/doc/html/pcre2test.html +++ b/doc/html/pcre2test.html @@ -1450,8 +1450,10 @@ Testing substitute callouts </b><br> <P> If the <b>substitute_callout</b> modifier is set, a substitution callout -function is set up. When it is called (after each substitution), details of the -the input and output strings are output. For example: +function is set up. The <b>null_context</b> modifier must not be set, because +the address of the callout function is passed in a match context. When the +callout function is called (after each substitution), details of the the input +and output strings are output. For example: <pre> /abc/g,replace=<$0>,substitute_callout abcdefabcpqr @@ -1626,11 +1628,11 @@ Passing a NULL context </b><br> <P> Normally, <b>pcre2test</b> passes a context block to <b>pcre2_match()</b>, -<b>pcre2_dfa_match()</b> or <b>pcre2_jit_match()</b>. If the <b>null_context</b> -modifier is set, however, NULL is passed. This is for testing that the matching -functions behave correctly in this case (they use default values). This -modifier cannot be used with the <b>find_limits</b> modifier or when testing the -substitution function. +<b>pcre2_dfa_match()</b>, <b>pcre2_jit_match()</b> or <b>pcre2_substitute()</b>. +If the <b>null_context</b> modifier is set, however, NULL is passed. This is for +testing that the matching and substitution functions behave correctly in this +case (they use default values). This modifier cannot be used with the +<b>find_limits</b> or <b>substitute_callout</b> modifiers. </P> <br><a name="SEC12" href="#TOC1">THE ALTERNATIVE MATCHING FUNCTION</a><br> <P> @@ -2076,7 +2078,7 @@ Cambridge, England. </P> <br><a name="SEC21" href="#TOC1">REVISION</a><br> <P> -Last updated: 11 February 2019 +Last updated: 11 March 2019 <br> Copyright © 1997-2019 University of Cambridge. <br> |