mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
Fixed, DECORATE parser, DB2 bug: the parser didn't check stream length while skipping block comments, so unclosed ones caused EndOfStreamException.
This commit is contained in:
parent
a523f7eb28
commit
97d54d2070
1 changed files with 7 additions and 0 deletions
|
@ -179,6 +179,13 @@ namespace CodeImp.DoomBuilder.ZDoom
|
|||
char c4, c3 = '\0';
|
||||
do
|
||||
{
|
||||
if(datastream.Position == datastream.Length) //mxd
|
||||
{
|
||||
// ZDoom doesn't give even a warning message about this, so we shouldn't report error or fail parsing.
|
||||
General.ErrorLogger.Add(ErrorType.Warning, "DECORATE warning in '" + sourcename + "', line " + GetCurrentLineNumber() + ". Block comment is not closed");
|
||||
return true;
|
||||
}
|
||||
|
||||
c4 = c3;
|
||||
c3 = (char)datareader.ReadByte();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue