-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Description
On the file Quake/r_world.c line 130 the "leafs" array is accessed with a "i+1" index, so in the last iteration it will access "leafs[numleafs]", which is out of the array, isn't it?
On other similar parts of the code there is also this access.
I've tracked this behavior all the way on Fitzquake and on Id's source too.
r_world.c:130:
// iterate through leaves, marking surfaces
leaf = &cl.worldmodel->leafs[1];
for (i=0 ; i<cl.worldmodel->numleafs ; i++, leaf++)
{
if (vis[i>>3] & (1<<(i&7)))
{
Metadata
Metadata
Assignees
Labels
No labels