Merge pull request #4970 from mjunix/patch-1

Fix index out of bounds
pull/4971/head^2
Kim Kulling 2023-02-22 21:32:56 +01:00 committed by GitHub
commit 27225fadc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ AI_WONT_RETURN void B3DImporter::Fail(const string &str) {
// ------------------------------------------------------------------------------------------------
int B3DImporter::ReadByte() {
if (_pos > _buf.size()) {
if (_pos >= _buf.size()) {
Fail("EOF");
}