mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 07:31:35 +02:00
fix off-by-one over-read in match_string2 unicode escape parsing
(cherry picked from commit dedae5272d9d311464e8b25a5c57701591ac4eb1)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user