Skip to content

Commit 7097dec

Browse files
committed
regmatch: Use utf8_to-uv_or_die not utf8_to_uvchr_buf
1 parent d22f3fb commit 7097dec

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

regexec.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7631,7 +7631,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog)
76317631
|| ANYOF_FLAGS(scan) > NATIVE_UTF8_TO_I8(*locinput)
76327632
|| ! (anyofh_list = GET_ANYOFH_INVLIST(rex, scan))
76337633
|| ! _invlist_contains_cp(anyofh_list,
7634-
utf8_to_uvchr_buf((U8 *) locinput,
7634+
utf8_to_uv_or_die((U8 *) locinput,
76357635
(U8 *) loceol,
76367636
NULL)))
76377637
{
@@ -7646,7 +7646,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog)
76467646
|| ANYOF_FLAGS(scan) != (U8) *locinput
76477647
|| ! (anyofh_list = GET_ANYOFH_INVLIST(rex, scan))
76487648
|| ! _invlist_contains_cp(anyofh_list,
7649-
utf8_to_uvchr_buf((U8 *) locinput,
7649+
utf8_to_uv_or_die((U8 *) locinput,
76507650
(U8 *) loceol,
76517651
NULL)))
76527652
{
@@ -7676,7 +7676,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog)
76767676
HIGHEST_ANYOF_HRx_BYTE(ANYOF_FLAGS(scan)))
76777677
|| ! (anyofh_list = GET_ANYOFH_INVLIST(rex, scan))
76787678
|| ! _invlist_contains_cp(anyofh_list,
7679-
utf8_to_uvchr_buf((U8 *) locinput,
7679+
utf8_to_uv_or_die((U8 *) locinput,
76807680
(U8 *) loceol,
76817681
NULL)))
76827682
{
@@ -7692,7 +7692,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog)
76927692
|| memNE(locinput, ((struct regnode_anyofhs *) scan)->string, FLAGS(scan))
76937693
|| ! (anyofh_list = GET_ANYOFH_INVLIST(rex, scan))
76947694
|| ! _invlist_contains_cp(anyofh_list,
7695-
utf8_to_uvchr_buf((U8 *) locinput,
7695+
utf8_to_uv_or_die((U8 *) locinput,
76967696
(U8 *) loceol,
76977697
NULL)))
76987698
{
@@ -7708,7 +7708,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog)
77087708

77097709
if (utf8_target) {
77107710
if ( ANYOF_FLAGS(scan) > NATIVE_UTF8_TO_I8(*locinput)
7711-
|| ! withinCOUNT(utf8_to_uvchr_buf((U8 *) locinput,
7711+
|| ! withinCOUNT(utf8_to_uv_or_die((U8 *) locinput,
77127712
(U8 *) reginfo->strend,
77137713
NULL),
77147714
ANYOFRbase(scan), ANYOFRdelta(scan)))
@@ -7733,7 +7733,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog)
77337733

77347734
if (utf8_target) {
77357735
if ( ANYOF_FLAGS(scan) != (U8) *locinput
7736-
|| ! withinCOUNT(utf8_to_uvchr_buf((U8 *) locinput,
7736+
|| ! withinCOUNT(utf8_to_uv_or_die((U8 *) locinput,
77377737
(U8 *) reginfo->strend,
77387738
NULL),
77397739
ANYOFRbase(scan), ANYOFRdelta(scan)))
@@ -7880,7 +7880,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog)
78807880
if (! (to_complement
78817881
^ cBOOL(_invlist_contains_cp(
78827882
PL_XPosix_ptrs[classnum],
7883-
utf8_to_uvchr_buf((U8 *) locinput,
7883+
utf8_to_uv_or_die((U8 *) locinput,
78847884
(U8 *) reginfo->strend,
78857885
NULL)))))
78867886
{

0 commit comments

Comments
 (0)