Skip to content

Commit aed7863

Browse files
lkotuladahlerlend
authored andcommitted
BUG#28125030 - C/JAVA ASYNCHRONOUS XPLUGIN TESTS CAUSES CRASH IN MYSQL SERVER 8.0.12
Follow-up fix for clang ASAN repors.
1 parent f5f460f commit aed7863

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/x/src/xpl_regex.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ bool xpl::Regex::match(const char *value) const {
5353
* and parse the text patter each time that xpl::Regex::match
5454
* is called.
5555
*/
56+
UnicodeString value_as_utf8{icu::UnicodeString::fromUTF8(value)};
5657
std::unique_ptr<icu::RegexMatcher> regexp{
57-
m_pattern->matcher(icu::UnicodeString::fromUTF8(value), match_status)};
58+
m_pattern->matcher(value_as_utf8, match_status)};
5859

5960
if (!U_SUCCESS(match_status)) return false;
6061

0 commit comments

Comments
 (0)