summaryrefslogtreecommitdiff
path: root/doc/pcre2test.txt
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2019-03-11 17:29:08 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2019-03-11 17:29:08 +0000
commit3bf3763f680dc980cda4135c91d85d8fe9ab2bb6 (patch)
tree58888bb81c0427acf6b346a83691c9c19f437f97 /doc/pcre2test.txt
parent39dbe12dc29bda4cc1b9790c4bda6f81cb038927 (diff)
downloadpcre2-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/pcre2test.txt')
-rw-r--r--doc/pcre2test.txt18
1 files changed, 10 insertions, 8 deletions
diff --git a/doc/pcre2test.txt b/doc/pcre2test.txt
index ca3b7e3..cbe3528 100644
--- a/doc/pcre2test.txt
+++ b/doc/pcre2test.txt
@@ -1303,8 +1303,10 @@ SUBJECT MODIFIERS
Testing substitute callouts
If the substitute_callout modifier is set, a substitution callout func-
- tion is set up. When it is called (after each substitution), details of
- the the input and output strings are output. For example:
+ tion is set up. The null_context 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:
/abc/g,replace=<$0>,substitute_callout
abcdefabcpqr
@@ -1457,11 +1459,11 @@ SUBJECT MODIFIERS
Passing a NULL context
Normally, pcre2test passes a context block to pcre2_match(),
- pcre2_dfa_match() or pcre2_jit_match(). If the null_context 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 find_limits modifier or when testing
- the substitution function.
+ pcre2_dfa_match(), pcre2_jit_match() or pcre2_substitute(). If the
+ null_context 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 find_limits or substitute_callout modifiers.
THE ALTERNATIVE MATCHING FUNCTION
@@ -1888,5 +1890,5 @@ AUTHOR
REVISION
- Last updated: 11 February 2019
+ Last updated: 11 March 2019
Copyright (c) 1997-2019 University of Cambridge.