|
|
I found a bug in MegaPOV 0.5a (and probably also in 3.1g - as far as I
can see the code is the same in this regard):
If both mosaic preview (e.g., for radiosity) and cpu histogram are
enabled, accumulate_histogram can be called with x and y values larger
than the specified frame size. Since it doesn't sufficiently check the
values, it will write beyond allocated size of histogram_grid.
A possible fix is to enhance the check at the start of the function:
if (y < 0 || x < 0 ||
y >= Frame.Screen_Height || x >= Frame.Screen_Width)
{
return;
}
hp
--
_ | Peter J. Holzer | Nicht an Tueren mangelt es,
|_|_) | Sysadmin WSR | sondern an der Einrichtung (aka Content).
| | | hjp### [at] wsracat | -- Ale### [at] univieacat
__/ | http://www.hjp.at/ | zum Thema Portale in at.linux
Post a reply to this message
|
|