I use Valgrind as an additional way to check Ghostty’s unit tests and catch memory-safety problems. I described the checks as a valuable safety net, and said other tests also help find these issues.
On 2025-08-21, I said Ghostty's unit tests now fully pass Valgrind.
I said the tests cover a significant surface area, particularly for core terminal emulation features.
I said we run Valgrind in CI on every commit.
I called Valgrind a really good extra safety net to have.
I said this extra layer of checking is now run on every commit so leaks, undefined memory access, and UAFs are found more quickly.
I said we have other tests to test this as well, not just Valgrind.
I said this was likely why we had so little issues in this.
Related: memory leaks in ghostty, terminal testing tools, terminal resource isolation