pcre2/pcre2-10.33-Fix-crash-when-X-is-used-without-UTF-in-JIT.patch

43 lines
1.0 KiB
Diff

From 6809752eacde104d45c5e11c3c64165857200ce7 Mon Sep 17 00:00:00 2001
From: ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>
Date: Mon, 13 May 2019 16:26:17 +0000
Subject: [PATCH 1/2] Fix crash when \X is used without UTF in JIT.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1091 6239d852-aaf2-0410-a92c-79f79f948069
Petr Písař: Ported to 10.33.
---
testdata/testinput4 | 3 +++
testdata/testoutput4 | 4 ++++
diff --git a/testdata/testinput4 b/testdata/testinput4
index cccab0e..f3d498c 100644
--- a/testdata/testinput4
+++ b/testdata/testinput4
@@ -2480,4 +2480,7 @@
/^(?'אABC'...)(?&אABC)/utf
123123123456
+/\X*/
+ \xF3aaa\xE4\xEA\xEB\xFEa
+
# End of testinput4
diff --git a/testdata/testoutput4 b/testdata/testoutput4
index 84b8b9e..53926ed 100644
--- a/testdata/testoutput4
+++ b/testdata/testoutput4
@@ -4012,4 +4012,8 @@ No match
0: 123123
1: 123
+/\X*/
+ \xF3aaa\xE4\xEA\xEB\xFEa
+ 0: \xf3aaa\xe4\xea\xeb\xfea
+
# End of testinput4
--
2.20.1