This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH: GH #17367 read 1 beyond end of buffer
[perl5.git] / t / re / pat.t
index 8045ed4..413fbee 100644 (file)
@@ -24,7 +24,7 @@ BEGIN {
 
 skip_all_without_unicode_tables();
 
-plan tests => 1011;  # Update this when adding/deleting tests.
+plan tests => 1012;  # Update this when adding/deleting tests.
 
 run_tests() unless caller;
 
@@ -2081,6 +2081,10 @@ CODE
     {   # [perl #133871], ASAN/valgrind out-of-bounds access
         fresh_perl_like('qr/(?|(())|())|//', qr/syntax error/, {}, "[perl #133871]");
     }
+    {   # [perl #133871], ASAN/valgrind out-of-bounds access
+        fresh_perl_like('qr/\p{nv:NAnq}/', qr/Can't find Unicode property definition/, {}, "GH #17367");
+    }
+
   SKIP:
     {   # [perl #133921], segfault
         skip "Not valid for EBCDIC", 5 if $::IS_EBCDIC;