summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2011-02-16 17:17:18 +0000
committerDavid Mitchell <davem@iabyn.com>2011-02-16 17:34:08 +0000
commitef07e810699a20ac03620e091b78c1c6ef971c32 (patch)
treea8a2b4336cee567c62d4edd14b95b9532df16cd9 /regexp.h
parent20be6587f85cec282e10810718c869dd958afe43 (diff)
downloadperl-ef07e810699a20ac03620e091b78c1c6ef971c32.tar.gz
document how tainting works with pattern matching
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/regexp.h b/regexp.h
index 31b5be009b..66473dda19 100644
--- a/regexp.h
+++ b/regexp.h
@@ -365,8 +365,12 @@ get_regex_charset_name(const U32 flags, STRLEN* const lenp)
/* Copy and tainted info */
#define RXf_COPY_DONE (1<<(RXf_BASE_SHIFT+16))
+
+/* during execution: pattern temporarily tainted by executing locale ops;
+ * post-execution: $1 et al are tainted */
#define RXf_TAINTED_SEEN (1<<(RXf_BASE_SHIFT+17))
-#define RXf_TAINTED (1<<(RXf_BASE_SHIFT+18)) /* this pattern is tainted */
+/* this pattern was tainted during compilation */
+#define RXf_TAINTED (1<<(RXf_BASE_SHIFT+18))
/* Flags indicating special patterns */
#define RXf_START_ONLY (1<<(RXf_BASE_SHIFT+19)) /* Pattern is /^/ */