pull/4282/head
Kim Kulling 2021-12-22 20:02:29 +01:00 committed by GitHub
parent 2eb86d75b8
commit 215f4e1f4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ void BaseImporter::ConvertToUTF8(std::vector<char> &data) {
// swap the endianness .. // swap the endianness ..
for (uint16_t *p = (uint16_t *)&data.front(), *end = (uint16_t *)&data.back(); p <= end; ++p) { for (uint16_t *p = (uint16_t *)&data.front(), *end = (uint16_t *)&data.back(); p <= end; ++p) {
// Check to ensure no overflow can happen // Check to ensure no overflow can happen
if ((index+2) < data.Size()) { if ((index+2) < data.size()) {
// Swap the data // Swap the data
ByteSwap::Swap2(p); ByteSwap::Swap2(p);
index += 2; index += 2;