Fix heap-buffer overflow in PLY parser

This commit is contained in:
Alexandre Avenel
2023-11-04 10:28:19 +01:00
committed by Kim Kulling
parent bfe8745b90
commit e4e2c63e0c
2 changed files with 3 additions and 2 deletions

View File

@@ -425,7 +425,8 @@ bool PLY::DOM::ParseHeader(IOStreamBuffer<char> &streamBuffer, std::vector<char>
break;
} else {
// ignore unknown header elements
streamBuffer.getNextLine(buffer);
if (!streamBuffer.getNextLine(buffer))
return false;
}
}