Merge pull request #2447 from jbzdarkid/develop

Add asserts to suppress C28020
This commit is contained in:
Niels Lohmann 2020-12-11 13:27:52 +01:00 committed by GitHub
commit e3643aadf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -881,6 +881,7 @@ class serializer
}
};
JSON_ASSERT(byte < utf8d.size());
const std::uint8_t type = utf8d[byte];
codep = (state != UTF8_ACCEPT)

View File

@ -16392,6 +16392,7 @@ class serializer
}
};
JSON_ASSERT(byte < utf8d.size());
const std::uint8_t type = utf8d[byte];
codep = (state != UTF8_ACCEPT)