Skip to content

[rtext] Add security check for LoadCodepoints()#5691

Closed
konakona418 wants to merge 1 commit into
raysan5:masterfrom
konakona418-forked:fix-load-cp
Closed

[rtext] Add security check for LoadCodepoints()#5691
konakona418 wants to merge 1 commit into
raysan5:masterfrom
konakona418-forked:fix-load-cp

Conversation

@konakona418
Copy link
Copy Markdown
Contributor

When the count parameter is specified as a null value, LoadCodepoints() function can cause segmentation fault. By checking whether the param is null can improve the robustness of the function.

@raysan5
Copy link
Copy Markdown
Owner

raysan5 commented Mar 25, 2026

@konakona418 Thanks but I'm not merging this change for consistency, raylib has +30 functions that return a *count parameter by reference and expect user to provide a valid variable for those cases. It's up to the user to do so.

@raysan5 raysan5 closed this Mar 25, 2026
@konakona418 konakona418 deleted the fix-load-cp branch March 25, 2026 17:33
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