Skip to content

Fix a bug where printing a character above the screen throws segmentation fault#774

Merged
moononournation merged 1 commit intomoononournation:masterfrom
dredzik:patch-1
Feb 10, 2026
Merged

Fix a bug where printing a character above the screen throws segmentation fault#774
moononournation merged 1 commit intomoononournation:masterfrom
dredzik:patch-1

Conversation

@dredzik
Copy link
Contributor

@dredzik dredzik commented Feb 10, 2026

I have a small project that takes a long text and scrolls it across the screen by offsetting the cursor to negative Y value. Unfortunately in some circumstances this calls writePixelPreclipped with a negative Y, calculates negative POS, and subsequently throws a segmentation fault.

After changing this line in my local copy, it no longer breaks. This is probably not the correct way to solve it.

@moononournation moononournation merged commit 249605f into moononournation:master Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants