File tree 6 files changed +110
-0
lines changed
6 files changed +110
-0
lines changed Original file line number Diff line number Diff line change @@ -7454,6 +7454,7 @@ if (utf && end_subject != true_end_subject &&
7454
7454
if (start_match >= true_end_subject )
7455
7455
{
7456
7456
rc = MATCH_NOMATCH ; /* In case it was partial */
7457
+ match_partial = NULL ;
7457
7458
break ;
7458
7459
}
7459
7460
Original file line number Diff line number Diff line change 506
506
\= Expect no match
507
507
ab\x80cdef\=ph
508
508
509
+ /.a/match_invalid_utf
510
+ ab\=ph
511
+ ab\=ps
512
+ b\xf0\x91\x88b\=ph
513
+ b\xf0\x91\x88b\=ps
514
+ b\xf0\x91\x88\xb4a
515
+ \= Expect no match
516
+ b\x80\=ph
517
+ b\x80\=ps
518
+ b\xf0\x91\x88\=ph
519
+ b\xf0\x91\x88\=ps
520
+
521
+ /.a$/match_invalid_utf
522
+ ab\=ph
523
+ ab\=ps
524
+ \= Expect no match
525
+ b\xf0\x91\x98\=ph
526
+ b\xf0\x91\x98\=ps
527
+
509
528
/ab$/match_invalid_utf
510
529
ab\x80cdeab
511
530
\= Expect no match
Original file line number Diff line number Diff line change 413
413
\= Expect no match
414
414
ab\x{df00}cdef\=ph
415
415
416
+ /.a/match_invalid_utf
417
+ ab\=ph
418
+ ab\=ps
419
+ \= Expect no match
420
+ b\x{df00}\=ph
421
+ b\x{df00}\=ps
422
+
423
+ /.a$/match_invalid_utf
424
+ ab\=ph
425
+ ab\=ps
426
+ \= Expect no match
427
+ b\x{df00}\=ph
428
+ b\x{df00}\=ps
429
+
416
430
/ab$/match_invalid_utf
417
431
ab\x{df00}cdeab
418
432
\= Expect no match
Original file line number Diff line number Diff line change @@ -1646,6 +1646,38 @@ Partial match: ab
1646
1646
ab\x80cdef\=ph
1647
1647
No match
1648
1648
1649
+ /.a/match_invalid_utf
1650
+ ab\=ph
1651
+ Partial match: b
1652
+ ab\=ps
1653
+ Partial match: b
1654
+ b\xf0\x91\x88b\=ph
1655
+ Partial match: b
1656
+ b\xf0\x91\x88b\=ps
1657
+ Partial match: b
1658
+ b\xf0\x91\x88\xb4a
1659
+ 0: \x{11234}a
1660
+ \= Expect no match
1661
+ b\x80\=ph
1662
+ No match
1663
+ b\x80\=ps
1664
+ No match
1665
+ b\xf0\x91\x88\=ph
1666
+ No match
1667
+ b\xf0\x91\x88\=ps
1668
+ No match
1669
+
1670
+ /.a$/match_invalid_utf
1671
+ ab\=ph
1672
+ Partial match: b
1673
+ ab\=ps
1674
+ Partial match: b
1675
+ \= Expect no match
1676
+ b\xf0\x91\x98\=ph
1677
+ No match
1678
+ b\xf0\x91\x98\=ps
1679
+ No match
1680
+
1649
1681
/ab$/match_invalid_utf
1650
1682
ab\x80cdeab
1651
1683
0: ab
Original file line number Diff line number Diff line change @@ -1522,6 +1522,28 @@ Partial match: ab
1522
1522
ab\x{df00}cdef\=ph
1523
1523
No match
1524
1524
1525
+ /.a/match_invalid_utf
1526
+ ab\=ph
1527
+ Partial match: b
1528
+ ab\=ps
1529
+ Partial match: b
1530
+ \= Expect no match
1531
+ b\x{df00}\=ph
1532
+ No match
1533
+ b\x{df00}\=ps
1534
+ No match
1535
+
1536
+ /.a$/match_invalid_utf
1537
+ ab\=ph
1538
+ Partial match: b
1539
+ ab\=ps
1540
+ Partial match: b
1541
+ \= Expect no match
1542
+ b\x{df00}\=ph
1543
+ No match
1544
+ b\x{df00}\=ps
1545
+ No match
1546
+
1525
1547
/ab$/match_invalid_utf
1526
1548
ab\x{df00}cdeab
1527
1549
0: ab
Original file line number Diff line number Diff line change @@ -1520,6 +1520,28 @@ Partial match: ab
1520
1520
ab\x{df00}cdef\=ph
1521
1521
No match
1522
1522
1523
+ /.a/match_invalid_utf
1524
+ ab\=ph
1525
+ Partial match: b
1526
+ ab\=ps
1527
+ Partial match: b
1528
+ \= Expect no match
1529
+ b\x{df00}\=ph
1530
+ No match
1531
+ b\x{df00}\=ps
1532
+ No match
1533
+
1534
+ /.a$/match_invalid_utf
1535
+ ab\=ph
1536
+ Partial match: b
1537
+ ab\=ps
1538
+ Partial match: b
1539
+ \= Expect no match
1540
+ b\x{df00}\=ph
1541
+ No match
1542
+ b\x{df00}\=ps
1543
+ No match
1544
+
1523
1545
/ab$/match_invalid_utf
1524
1546
ab\x{df00}cdeab
1525
1547
0: ab
You can’t perform that action at this time.
0 commit comments