quakespasm icon indicating copy to clipboard operation
quakespasm copied to clipboard

bad loop

Open Shpoike opened this issue 2 years ago • 2 comments

https://github.com/sezero/quakespasm/blob/master/Quake/r_world.c#L131 by pre-skipping leaf 0 (as required by pvs), that array reads 1 leaf and 1 pvsbit beyond the end of their respective arrays, which could result in bad reads or even writes.

Shpoike avatar Jan 16 '24 08:01 Shpoike

Do you have a patch?

CC: @andrei-drexler, @ericwa

sezero avatar Jan 16 '24 09:01 sezero