mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 04:51:52 +00:00
Changed: Exit if line is truncated
This commit is contained in:
parent
bcad6f8910
commit
fd78d7ca74
1 changed files with 6 additions and 0 deletions
|
@ -332,6 +332,12 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
std::string line(buffer);
|
std::string line(buffer);
|
||||||
|
|
||||||
|
if (line.size() > 1022)
|
||||||
|
{
|
||||||
|
nlwarning("More than 1022 bytes on a line!");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (line.size() < 3) continue;
|
if (line.size() < 3) continue;
|
||||||
|
|
||||||
// texture coordinate
|
// texture coordinate
|
||||||
|
|
Loading…
Reference in a new issue