Repository navigation
libghostty-vt: resize while the viewport is scrolled up fails the PageList integrity check #15234
Issue Description
Expected BehaviorThe resize succeeds Actual BehaviorReleaseFast doesn't panic Reproduction Steps#include <ghostty/vt.h>
#include <stdio.h>
int main(void) {
GhosttyTerminal t;
ghostty_terminal_new(NULL, &t, 2, 1);
ghostty_terminal_vt_write(t, (const uint8_t *)"abcd", 4);
ghostty_terminal_vt_write(t, (const uint8_t *)"e", 1);
GhosttyTerminalScrollViewport up = {0};
up.tag = GHOSTTY_TERMINAL_SCROLL_VIEWPORT_DELTA;
up.value.delta = -1;
ghostty_terminal_scroll_viewport(t, up);
ghostty_terminal_vt_write(t, (const uint8_t *)"fgh", 3);
ghostty_terminal_resize(t, 4, 4, 8, 16); // panics
puts("survived");
ghostty_terminal_free(t);
}Built with Ghostty LogsNo response Ghostty VersionOS Version InformationLinux x86_64 (Arch Linux) (Linux only) Display ServerNone (Linux only) Desktop Environment/Window ManagerNo response Minimal Ghostty ConfigurationN/A: the library on its own, from C.Additional Relevant ConfigurationNo response I acknowledge that:
Found by fuzzing with Claude Code, which also wrote the reproducer and drafted this report. I reviewed and edited it. |
Answered by
jcollie
Nov 14, 2026
Replies: 1 comment
0 replies
Answer selected by
jcollie
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#15236