mirror of
https://github.com/monero-project/monero.git
synced 2026-06-12 19:11:36 -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
|
case '/': //Slash character
|
||||||
val.push_back('/');break;
|
val.push_back('/');break;
|
||||||
case 'u': //Unicode code point
|
case 'u': //Unicode code point
|
||||||
if (buf_end - it < 4)
|
if (buf_end - it < 5)
|
||||||
{
|
{
|
||||||
ASSERT_MES_AND_THROW("Invalid Unicode escape sequence");
|
ASSERT_MES_AND_THROW("Invalid Unicode escape sequence");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user