Blame SOURCES/perl-5.26.1-perl-132063-we-should-no-longer-warn-for-this-code.patch

243a19
From 3c4ea4886efdb477335f6931d0a553e818ee172f Mon Sep 17 00:00:00 2001
243a19
From: Tony Cook <tony@develop-help.com>
243a19
Date: Mon, 19 Feb 2018 15:11:42 +1100
243a19
Subject: (perl #132063) we should no longer warn for this code
243a19
243a19
The first patch for 132063 prevented the buffer read overflow when
243a19
dumping the warning but didn't fix the underlying problem.
243a19
243a19
The next change treats the supplied buffer correctly, preventing the
243a19
non-UTF-8 SV from being treated as UTF-8, preventing the warning.
243a19
---
243a19
 t/lib/warnings/regexec | 3 ---
243a19
 1 file changed, 3 deletions(-)
243a19
243a19
diff --git a/t/lib/warnings/regexec b/t/lib/warnings/regexec
243a19
index 6635142dea..c370ddc3c7 100644
243a19
--- a/t/lib/warnings/regexec
243a19
+++ b/t/lib/warnings/regexec
243a19
@@ -262,8 +262,5 @@ setlocale(&POSIX::LC_CTYPE, $utf8_locale);
243a19
 EXPECT
243a19
 ########
243a19
 # NAME perl #132063, read beyond buffer end
243a19
-# OPTION fatal
243a19
 "\xff" =~ /(?il)\x{100}|\x{100}/;
243a19
 EXPECT
243a19
-Malformed UTF-8 character: \xff (too short; 1 byte available, need 13) in pattern match (m//) at - line 2.
243a19
-Malformed UTF-8 character (fatal) at - line 2.
243a19
-- 
243a19
2.11.0
243a19