From bf3b50a5431916b928a68cc8ba96d7c2b7aa7c92 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 8 Oct 2017 11:57:16 +0800 Subject: [PATCH] Regex: Fix wrong size of character_class_escapes array --- src/regex_impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/regex_impl.cc b/src/regex_impl.cc index 98fa45f3..ca1f44cc 100644 --- a/src/regex_impl.cc +++ b/src/regex_impl.cc @@ -489,14 +489,14 @@ private: StringView additional_chars; bool neg; }; - static const CharacterClassEscape character_class_escapes[8]; + static const CharacterClassEscape character_class_escapes[4]; struct ControlEscape { Codepoint name; Codepoint value; }; static const ControlEscape control_escapes[5]; }; // For some reason Gcc fails to link if this is constexpr -const RegexParser::CharacterClassEscape RegexParser::character_class_escapes[8] = { +const RegexParser::CharacterClassEscape RegexParser::character_class_escapes[4] = { { 'd', "digit", "", false }, { 'w', "alnum", "_", false }, { 's', "space", "", false },