summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-11-22 15:28:13 -0700
committerKarl Williamson <khw@cpan.org>2019-11-22 15:54:44 -0700
commit53d42e43e359facdd83b313c1f4b70f9ff559a70 (patch)
treed1e8547bbdfa043aaa7cd7a23b58ffcbc25a8fdc /regcomp.h
parent008bb368ebc18adc42e95769e4ebbd7d5545ce3d (diff)
downloadperl-53d42e43e359facdd83b313c1f4b70f9ff559a70.tar.gz
PATCH: gh #17319 Segfault
It turns out that one isn't supposed to fill in the offset to the next regnode at node creation time. And this node is like EXACTish, so the string stuff isn't accounted for in its regcomp.sym definition
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.h b/regcomp.h
index 3f7dd31391..e58534278d 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -165,7 +165,7 @@ struct regnode_lstring { /* Constructed this way to keep the string aligned. */
};
struct regnode_anyofhs { /* Constructed this way to keep the string aligned. */
- U8 flags;
+ U8 str_len;
U8 type;
U16 next_off;
U32 arg1; /* set by set_ANYOF_arg() */