Skip to content

Commit

Permalink
Revision to hvds patch for #17775
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson authored and xsawyerx committed May 25, 2020
1 parent 820179e commit 7c2e09c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions regcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -12480,7 +12480,7 @@ S_reg(pTHX_ RExC_state_t *pRExC_state, I32 paren, I32 *flagp, U32 depth)
*
* Implements the concatenation operator.
*
* On success, returns the offset at which any next node should be placed into
* On success, XXX wrong: returns the offset at which any next node should be placed into
* the regex engine program being compiled.
*
* Returns 0 otherwise, setting flagp to RESTART_PARSE if the parse needs
Expand Down Expand Up @@ -16464,7 +16464,10 @@ S_handle_regex_sets(pTHX_ RExC_state_t *pRExC_state, SV** return_invlist,
/* If more than a single node returned, the nested
* parens evaluated to more than just a (?[...]),
* which isn't legal */
|| node != 1) {
|| RExC_emit != orig_emit
+ NODE_STEP_REGNODE
+ regarglen[REGEX_SET])
{
vFAIL("Expecting interpolated extended charclass");
}
resultant_invlist = (SV *) ARGp(REGNODE_p(node));
Expand Down

0 comments on commit 7c2e09c

Please sign in to comment.