Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for negative cluster number in compute_sky_visibility() #165

Merged
merged 1 commit into from
Nov 25, 2021

Conversation

res2k
Copy link
Contributor

@res2k res2k commented Nov 25, 2021

Fixes #163.

cluster == -1 seems to be a legitimate case as that value is set in bsp_mesh.c:719.
I didn't dig deeper into the circumstances under which that happens (though it may be worthwhile, if only for documentation/commenting purposes).
But, as can be seen from the code, that value causes an out-of-bounds array access.

Curiously, this access would happen on Windows as well, not just Linux; I guess it's only manifesting as a crash there due to compiler differences (codegen, or perhaps data alignment/arrangement) or ABI differences.

@apanteleev apanteleev merged commit 6a68b76 into NVIDIA:master Nov 25, 2021
@res2k res2k deleted the fix-compute_sky_visibility-crash branch March 3, 2022 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linux RADV - Compiles fine but getting "Received Signal 11, aborting" when starting new game in rtx mode.
2 participants