Skip to content

Fix some bugs from address sanitizer #1639

Merged
slipher merged 3 commits intoDaemonEngine:masterfrom
slipher:asanhunk
Apr 6, 2025
Merged

Fix some bugs from address sanitizer #1639
slipher merged 3 commits intoDaemonEngine:masterfrom
slipher:asanhunk

Conversation

@slipher
Copy link
Copy Markdown
Member

@slipher slipher commented Apr 5, 2025

The out-of-bounds light grid read one led to visibly different lighting on Nano. This map tends to read on the edges of the grid due to its very large cell size: the light grid is only 3x4x2 for the whole map.

slipher added 2 commits April 4, 2025 23:03
Found by using ASan and replacing Hunk_Alloc's body with calloc(n, 1).
R_StitchPatches can replace a grid, invalidating the grid1 pointer.
Copy link
Copy Markdown
Contributor

@VReaperV VReaperV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@slipher slipher merged commit 06a1171 into DaemonEngine:master Apr 6, 2025
9 checks passed
@slipher slipher deleted the asanhunk branch April 6, 2025 09:32
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.

2 participants