Skip to content

Fix heap over-read when kitty gray-image allocation fails#79

Merged
zackslash merged 1 commit into
mainfrom
fix/kitty-gray-oom-overread
Jul 18, 2026
Merged

Fix heap over-read when kitty gray-image allocation fails#79
zackslash merged 1 commit into
mainfrom
fix/kitty-gray-oom-overread

Conversation

@zackslash

@zackslash zackslash commented Jul 18, 2026

Copy link
Copy Markdown
Owner

On malloc failure during the kitty gray -> RGBA conversion, the draw path fell through to glTexImage2D with the undersized gray buffer still bound, causing a 2-4× heap over-read. The placement is now skipped instead.

@zackslash
zackslash merged commit 91b0e9b into main Jul 18, 2026
3 checks passed
@zackslash
zackslash deleted the fix/kitty-gray-oom-overread branch July 18, 2026 18:50
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