Skip to content

Commit

Permalink
Merge pull request #6675
Browse files Browse the repository at this point in the history
3721d56 epee: fix array underflow in unicode parsing (moneromooo-monero)
  • Loading branch information
luigi1111 committed Jul 8, 2020
2 parents 99b14cc + 3721d56 commit 803f585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/epee/include/storages/parserse_base_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 803f585

Please sign in to comment.