fix off-by-one over-read in match_string2 unicode escape parsing

(cherry picked from commit dedae5272d9d311464e8b25a5c57701591ac4eb1)
This commit is contained in:
alhudz
2026-10-04 18:50:20 -04:00
committed by such-gitea
parent ca0fa050d3
commit 692066eb88
+1 -1
View File
@@ -129,7 +129,7 @@ namespace misc_utils
case '/': //Slash character
val.push_back('/');break;
case 'u': //Unicode code point
if (buf_end - it < 4)
if (buf_end - it < 5)
{
ASSERT_MES_AND_THROW("Invalid Unicode escape sequence");
}