mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
tuxtxt.cpp: fixheap buffer overflow
Origin commit data
------------------
Commit: 160dda776c
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-06-22 (Mon, 22 Jun 2015)
This commit is contained in:
@@ -4765,7 +4765,8 @@ void RenderChar(int Char, tstPageAttr *Attribute, int zoom, int yoffset)
|
||||
for (Pitch = 0; Pitch < sbit->pitch; Pitch++)
|
||||
{
|
||||
if (sbit_diacrit->pitch > Pitch && sbit_diacrit->height > Row)
|
||||
sbitbuffer[Row*sbit->pitch+Pitch] |= sbit_diacrit->buffer[Row*sbit->pitch+Pitch];
|
||||
if((sbit_diacrit->pitch*sbit_diacrit->height) > (Row*sbit->pitch+Pitch))
|
||||
sbitbuffer[Row*sbit->pitch+Pitch] |= sbit_diacrit->buffer[Row*sbit->pitch+Pitch];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user