Skip to content

Conversation

@Goober5000
Copy link
Contributor

Rewrite force_fit_string to be more robust and to remove the potential for memory access violations. Also audit all of the length parameters in the calling functions - some of them were the buffer size, not the length. This should fix the mysterious crash in the mission log screen.

Rewrite `force_fit_string` to be more robust and to remove the potential for memory access violations.  Also audit all of the length parameters in the calling functions - some of them were the buffer size, not the length.  This should fix the mysterious crash in the mission log screen.
@Goober5000 Goober5000 added this to the Release 25.0 milestone Dec 24, 2025
@Goober5000 Goober5000 added cleanup A modification or rewrite of code to make it more understandable or easier to maintain. fix A fix for bugs, not-a-bugs, and/or regressions. labels Dec 24, 2025
@BMagnu BMagnu merged commit 306f34a into scp-fs2open:master Dec 24, 2025
20 checks passed
@Goober5000 Goober5000 deleted the force_fit_string_update branch December 25, 2025 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup A modification or rewrite of code to make it more understandable or easier to maintain. fix A fix for bugs, not-a-bugs, and/or regressions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants