Skip to content

Protect log handlers from dangling message buffers - #84

Closed
imakris wants to merge 1 commit into
masterfrom
codex/find-and-fix-dangling-pointers-and-references-4yista
Closed

Protect log handlers from dangling message buffers#84
imakris wants to merge 1 commit into
masterfrom
codex/find-and-fix-dangling-pointers-and-references-4yista

Conversation

@imakris

@imakris imakris commented Oct 17, 2025

Copy link
Copy Markdown
Owner

Summary

  • add a thread-local log message ring that copies text before invoking handlers so we never hand out pointers to destroyed buffers and return the stabilized pointer from glatter_log
  • extend the logging unit test to assert that heap-allocated messages are copied and preserved for the handler

Testing

  • cmake -S . -B build (fails: missing OpenGL libraries on build image)

https://chatgpt.com/codex/tasks/task_b_68f2952a4e24832dba89bf092dab5ebb

@imakris imakris closed this Oct 19, 2025
@imakris
imakris deleted the codex/find-and-fix-dangling-pointers-and-references-4yista branch January 3, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant