Merge pull request #2447 from jbzdarkid/develop
Add asserts to suppress C28020
This commit is contained in:
commit
e3643aadf7
@ -881,6 +881,7 @@ class serializer
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
JSON_ASSERT(byte < utf8d.size());
|
||||||
const std::uint8_t type = utf8d[byte];
|
const std::uint8_t type = utf8d[byte];
|
||||||
|
|
||||||
codep = (state != UTF8_ACCEPT)
|
codep = (state != UTF8_ACCEPT)
|
||||||
|
|||||||
@ -16392,6 +16392,7 @@ class serializer
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
JSON_ASSERT(byte < utf8d.size());
|
||||||
const std::uint8_t type = utf8d[byte];
|
const std::uint8_t type = utf8d[byte];
|
||||||
|
|
||||||
codep = (state != UTF8_ACCEPT)
|
codep = (state != UTF8_ACCEPT)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user