fix for clang runtime checks for overflow

pull/2466/head
Mike Samsonov 2019-05-14 15:45:57 +01:00
parent c84ac7a135
commit 6c13ec8190
1 changed files with 1 additions and 0 deletions

View File

@ -170,6 +170,7 @@ size_t DecodeBase64(const char* in, size_t inLength, uint8_t* out, size_t maxOut
{ {
out[dst_offset++] = static_cast<uint8_t>((val >> valb) & 0xFF); out[dst_offset++] = static_cast<uint8_t>((val >> valb) & 0xFF);
valb -= 8; valb -= 8;
val &= 0xFFF;
} }
} }
return dst_offset; return dst_offset;