Skip to content

fix(debug): add thread-safe initialization and re-enable file output …#5

Merged
TorinKS merged 1 commit intomainfrom
change/fix-debug-thread-safety
Mar 22, 2026
Merged

fix(debug): add thread-safe initialization and re-enable file output …#5
TorinKS merged 1 commit intomainfrom
change/fix-debug-thread-safety

Conversation

@TorinKS
Copy link
Copy Markdown
Owner

@TorinKS TorinKS commented Mar 22, 2026

…locking

GetDebugState() now uses InterlockedCompareExchangePointer to prevent TOCTOU race on first initialization. DebugEnableFileOutput() critical section locks re-enabled to protect LogFileHandle and OutputToFile flag.

…locking

GetDebugState() now uses InterlockedCompareExchangePointer to prevent
TOCTOU race on first initialization. DebugEnableFileOutput() critical
section locks re-enabled to protect LogFileHandle and OutputToFile flag.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@TorinKS TorinKS merged commit 2e4245c into main Mar 22, 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.

1 participant