Skip to content

Fix bug with call of DECFRA out of bounds #1665

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Conversation

Yaraslaut
Copy link
Member

Closes #1664

@github-actions github-actions bot added the VT: Backend Virtual Terminal Backend (libterminal API) label Dec 10, 2024
@Yaraslaut Yaraslaut force-pushed the fix/DECFRA_out_of_page branch 3 times, most recently from 32abf8d to a0925e6 Compare December 11, 2024 12:03
@github-actions github-actions bot added the test Unit tests label Dec 11, 2024
@Yaraslaut Yaraslaut force-pushed the fix/DECFRA_out_of_page branch from a0925e6 to 1490fd3 Compare December 11, 2024 12:04
@Yaraslaut Yaraslaut merged commit 1f8ed00 into master Dec 12, 2024
30 of 31 checks passed
@Yaraslaut Yaraslaut deleted the fix/DECFRA_out_of_page branch December 12, 2024 12:21
fillArea(ch, *top, *left, bottom, right);
// internal indices starts at 0, for DECFRA they start from 1
// we need to adjust it and then make shure they are in bounds
fillArea(ch, std::max(0, unbox(top) - 1), std::max(0, unbox(left) - 1), bottom - 1, right - 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this is the actual fix. Many thanks for addressing it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Unit tests VT: Backend Virtual Terminal Backend (libterminal API)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when using byobu
2 participants