From e118e60a68f03f38dd2ff3d16ca2e2e0d800e1d9 Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Mon, 13 May 2019 16:26:17 +0000 Subject: [PATCH] Fix crash when \X is used without UTF in JIT. --- ChangeLog | 2 ++ testdata/testinput4 | 3 +++ testdata/testoutput4 | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 48f6b95..20ac88a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,8 @@ ClusterFuzz 14376. 2. Improved the invalid utf32 support of the JIT compiler. Now it correctly detects invalid characters in the 0xd800-0xdfff range. +3. Fix minor typo bug in JIT compile when \X is used in a non-UTF string. + Version 10.33 16-April-2019 --------------------------- 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