Repository navigation
Surface.init Bug Fix: Memory Corruption (Heap) #14708
What do you want to change?I want to fix a bug found while working on adding a Windows front end to Ghostty. The main bug causes a double free memory corruption in the environment variable map in Surface.init, which is freed twice when creating a terminal fails partly. In Surface.zig there is a smaller bug found, which has a small fix. This fix cleans up the font grid, two derived configs, and two threads. Files affected: Fix: Evidence: Why do you want to make this change?This was found while working on a fork to add Windows support. This bug affects core code which would run on every platform. There is a PR mitchellh/libxev#251 for the async bug mentioned in #12050. Additionally I would like to send fixes when permitted/accepted. Open Disclosure: I’m using Claude Code to accelerate my learning of Ghostty, Zig, and other projects I have an interest in and if possible contribute to fixes or adding features as it permits. I acknowledge that:
|
Replies: 1 comment
|
!vouch |
!vouch