Skip to content

Stream bounds-checking changes ported from GZDoom#1158

Merged
coelckers merged 2 commits intoZDoom:masterfrom
Macil:streamUpdate
Jul 17, 2025
Merged

Stream bounds-checking changes ported from GZDoom#1158
coelckers merged 2 commits intoZDoom:masterfrom
Macil:streamUpdate

Conversation

@Macil
Copy link
Contributor

@Macil Macil commented Jul 14, 2025

This ports over the changes of ZDoom/gzdoom#3198 and ZDoom/gzdoom#3199 to Raze.

All changes in source/common/ are copied exactly from GZDoom. I copied the relevant files from GZDoom's src/common/ over, then I used git restore -p to remove some unrelated changes to those files. (GZDoom's master branch has a refactor of some networking code touching other parts of some of these same files and I'm not trying to port those changes over in this PR. I do not believe this PR will add any complications to any future effort to port those changes over from GZDoom.)

These changes fix a similar buffer overflow here as in GZDoom, and it also fixes a similar issue where the NCMD_MULTI flag is handled.

Macil added 2 commits July 14, 2025 03:48
Minimal changes have been made to Raze's code to make it function with the updated source/common files.
@coelckers coelckers merged commit e037728 into ZDoom:master Jul 17, 2025
8 checks passed
@Macil Macil deleted the streamUpdate branch July 17, 2025 11:28
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