[PR #8752] Fix intermittent crash in settings reload #27283

Closed
opened 2026-01-31 09:21:03 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/8752

State: closed
Merged: No


Summary of the Pull Request

I can't reliably get the original crash to repro unfortunately. When it did crash, this was the line of code that the debugger would open on. It was crashing trying to memcpy some garbage out of value, in the case where value is empty.

So I'm guessing that the fix it to not try and make a wstring from garbage, and instead construct it from the empty string. Again, I can't repro consistently, so this is a spitball. But the code looks wrong.

References

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/8752 **State:** closed **Merged:** No --- ## Summary of the Pull Request I can't reliably get the original crash to repro unfortunately. When it did crash, this was the line of code that the debugger would open on. It was crashing trying to `memcpy` some garbage out of `value`, in the case where `value` is empty. So I'm guessing that the fix it to _not_ try and make a `wstring` from garbage, and instead construct it from the empty string. Again, I can't repro consistently, so this is a spitball. But the code _looks_ wrong. ## References * #8565 ## PR Checklist * [x] Closes #8723 * [x] I work here * [ ] Tests added/passed
claunia added the pull-request label 2026-01-31 09:21:03 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27283