a37c37e
From c6f37d61adb39a6d7764b1bcb6bb67accb22a0a0 Mon Sep 17 00:00:00 2001
a37c37e
From: Karl Williamson <khw@cpan.org>
a37c37e
Date: Fri, 24 May 2019 09:01:46 -0600
a37c37e
Subject: [PATCH] PATCH: [perl #134133] read beyond end of buffer
a37c37e
MIME-Version: 1.0
a37c37e
Content-Type: text/plain; charset=UTF-8
a37c37e
Content-Transfer-Encoding: 8bit
a37c37e
a37c37e
The code was using the wrong limit variable.
a37c37e
a37c37e
Signed-off-by: Petr Písař <ppisar@redhat.com>
a37c37e
---
a37c37e
 regcomp.c | 2 +-
a37c37e
 1 file changed, 1 insertion(+), 1 deletion(-)
a37c37e
a37c37e
diff --git a/regcomp.c b/regcomp.c
a37c37e
index d61fd434fe..b2cc6672cb 100644
a37c37e
--- a/regcomp.c
a37c37e
+++ b/regcomp.c
a37c37e
@@ -22946,7 +22946,7 @@ Perl_parse_uniprop_string(pTHX_
a37c37e
         /* Certain properties whose values are numeric need special handling.
a37c37e
          * They may optionally be prefixed by 'is'.  Ignore that prefix for the
a37c37e
          * purposes of checking if this is one of those properties */
a37c37e
-        if (memBEGINPs(lookup_name, name_len, "is")) {
a37c37e
+        if (memBEGINPs(lookup_name, j, "is")) {
a37c37e
             lookup_offset = 2;
a37c37e
         }
a37c37e
 
a37c37e
-- 
a37c37e
2.21.0
a37c37e