- Added a range check for the PNG grAb chunks.
- Fixed: AddLine() could corrupt memory if the length of the text being added was longer than the console buffer. - Fixed: FTexture::GetScaled(Left|Top)Offset returned the Width and Height instead when the scale values were 0. - Removed the unnecessary "mov ecx,c" from mscinlines.h:Scale(). SVN r461 (trunk)
This commit is contained in:
parent
64ad1d14af
commit
9b72e34223
5 changed files with 30 additions and 7 deletions
|
|
@ -637,6 +637,11 @@ static void AddLine (const char *text, bool more, int len)
|
|||
TopLine = FlushLines (BufferRover, ConsoleBuffer + CONSOLESIZE);
|
||||
BufferRover = ConsoleBuffer;
|
||||
}
|
||||
if (len >= CONSOLESIZE - 1)
|
||||
{
|
||||
text = text + len - CONSOLESIZE + 1;
|
||||
len = CONSOLESIZE - 1;
|
||||
}
|
||||
TopLine = FlushLines (BufferRover, BufferRover + len + 1);
|
||||
memcpy (BufferRover, text, len);
|
||||
BufferRover[len] = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue