Skip to content

Commit

Permalink
Replace RExC_parse_inc style mods not using the UTF flag with RExC_pa…
Browse files Browse the repository at this point in the history
…rse_incf()

Mostly RExC_parse mutations using UTF8SKIP(RExC_parse) use the UTF flag
to determine if they should increment by 1 or increment by the
UTF8SKIP() return value, but this one uses a different flag
  • Loading branch information
demerphq committed Feb 24, 2022
1 parent ecebdb2 commit ac0f908
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions regcomp.c
Expand Up @@ -13452,9 +13452,8 @@ S_grok_bslash_N(pTHX_ RExC_state_t *pRExC_state,
* \N{U+100.} )
* */
if (*RExC_parse != '.' || RExC_parse + 1 >= e) {
RExC_parse += (RExC_orig_utf8) /* point to after 1st invalid */
? UTF8SKIP(RExC_parse)
: 1;
/*point to after 1st invalid */
RExC_parse_incf(RExC_orig_utf8);
/*Guard against malformed utf8*/
RExC_parse_set(MIN(e, RExC_parse));
goto bad_NU;
Expand Down

0 comments on commit ac0f908

Please sign in to comment.