Skip to content

Harden NULL handling in update and font paths - #138

Merged
RobLoach merged 1 commit into
masterfrom
fix/133-harden-null-handling-in-update-path
Jul 28, 2026
Merged

Harden NULL handling in update and font paths#138
RobLoach merged 1 commit into
masterfrom
fix/133-harden-null-handling-in-update-path

Conversation

@RobLoach

Copy link
Copy Markdown
Owner

Adds a NULL context guard to UpdateNuklearEx, guards the ctx->userdata.ptr casts in the mouse and keyboard input paths so a user-supplied nk_set_user_data() can no longer crash them, checks both MemAlloc results in LoadFontFromNuklear, and covers all of it with tests. Fixes #133

@RobLoach RobLoach self-assigned this Jul 28, 2026
@RobLoach
RobLoach merged commit b01b6bf into master Jul 28, 2026
1 check 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.

Harden NULL handling in update path and font loading

1 participant