Skip to content

Fix unsafe string ops in CTFSay_Team helpers#25

Merged
Yamagi merged 1 commit intoyquake2:masterfrom
devnexen:fix/ctf-unsafe-string-ops
Mar 28, 2026
Merged

Fix unsafe string ops in CTFSay_Team helpers#25
Yamagi merged 1 commit intoyquake2:masterfrom
devnexen:fix/ctf-unsafe-string-ops

Conversation

@devnexen
Copy link
Copy Markdown
Contributor

@devnexen devnexen commented Mar 1, 2026

Replace strcpy/strcat/sprintf with bounds-checked equivalents (Q_strlcpy, Q_strlcat, snprintf) in CTFSay_Team_Location, CTFSay_Team_Armor, and CTFSay_Team_Sight where buffer overflows are possible due to dynamic data or strcat chains.

Backported from yquake2remaster commit 16e68994.

Replace strcpy/strcat/sprintf with bounds-checked equivalents
(Q_strlcpy, Q_strlcat, snprintf) in CTFSay_Team_Location,
CTFSay_Team_Armor, and CTFSay_Team_Sight where buffer overflows
are possible due to dynamic data or strcat chains.

Backported from yquake2remaster commit 16e68994.
@Yamagi
Copy link
Copy Markdown
Member

Yamagi commented Mar 28, 2026

Thank you :)

@Yamagi Yamagi merged commit 7ca3505 into yquake2:master Mar 28, 2026
9 checks passed
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