This commit is contained in:
MihailRis
2023-11-16 20:28:20 +03:00
parent 0ec7f3348e
commit 47e24cb468
3 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ float BinaryReader::getFloat32() {
string BinaryReader::getString() {
uint16_t length = (uint16_t)getInt16();
if (pos+length >= size) {
if (pos+length > size) {
throw std::underflow_error("unexpected end");
}
pos += length;