mirror of
https://github.com/holub/mame
synced 2025-05-21 13:18:56 +03:00
Another out-of-bounds error caught by randomizing memory.
This commit is contained in:
parent
38b9895e51
commit
dead7010da
@ -128,6 +128,8 @@ static VIDEO_UPDATE( cubeqst )
|
|||||||
memset(depth_buffer, 0xff, 512);
|
memset(depth_buffer, 0xff, 512);
|
||||||
|
|
||||||
/* Process all the spans on this scanline */
|
/* Process all the spans on this scanline */
|
||||||
|
if (y < 256)
|
||||||
|
{
|
||||||
for (i = 0; i < num_entries; i += 2)
|
for (i = 0; i < num_entries; i += 2)
|
||||||
{
|
{
|
||||||
int color = 0, depth = 0;
|
int color = 0, depth = 0;
|
||||||
@ -171,6 +173,7 @@ static VIDEO_UPDATE( cubeqst )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user