diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-07-08 17:27:53 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-07-08 17:27:53 -0500 |
commit | 803f58553b64f1708cf19332ff6a919a2289bb67 (patch) | |
tree | a16b07a48d85aae64c85a30b9c968573879c7503 /contrib/epee | |
parent | Merge pull request #6647 (diff) | |
parent | epee: fix array underflow in unicode parsing (diff) | |
download | monero-803f58553b64f1708cf19332ff6a919a2289bb67.tar.xz |
Merge pull request #6675
3721d56 epee: fix array underflow in unicode parsing (moneromooo-monero)
Diffstat (limited to 'contrib/epee')
-rw-r--r-- | contrib/epee/include/storages/parserse_base_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/storages/parserse_base_utils.h b/contrib/epee/include/storages/parserse_base_utils.h index 2256f6b83..5a6cc0b51 100644 --- a/contrib/epee/include/storages/parserse_base_utils.h +++ b/contrib/epee/include/storages/parserse_base_utils.h @@ -196,7 +196,7 @@ namespace misc_utils uint32_t dst = 0; for (int i = 0; i < 4; ++i) { - const unsigned char tmp = isx[(int)*++it]; + const unsigned char tmp = isx[(unsigned char)*++it]; CHECK_AND_ASSERT_THROW_MES(tmp != 0xff, "Bad Unicode encoding"); dst = dst << 4 | tmp; } |