mirror of
https://github.com/monero-project/monero.git
synced 2026-06-12 11:01:34 -07:00
fix off-by-one over-read in match_string2 unicode escape parsing
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