Fix some overflows and unitialized variables

This commit is contained in:
Rafał Mikrut
2019-11-20 16:22:16 +01:00
parent 58ca9f17a2
commit 99d8626f4a
17 changed files with 35 additions and 8 deletions

View File

@ -1416,7 +1416,7 @@ bool String::parse_utf8(const char *p_utf8, int p_len) {
if (skip == 0) {
uint8_t c = *ptrtmp;
uint8_t c = *ptrtmp >= 0 ? *ptrtmp : uint8_t(256 + *ptrtmp);
/* Determine the number of characters in sequence */
if ((c & 0x80) == 0)