Skip to content

fix terminfo header memory check - #100

Merged
adsr merged 1 commit into
termbox:masterfrom
chyuv:fix
May 1, 2025
Merged

fix terminfo header memory check#100
adsr merged 1 commit into
termbox:masterfrom
chyuv:fix

Conversation

@chyuv

@chyuv chyuv commented Apr 30, 2025

Copy link
Copy Markdown

in function parse_terminfo_caps, header section at least check six short integers

@adsr
adsr merged commit 8ee9dc1 into termbox:master May 1, 2025
@adsr

adsr commented May 1, 2025

Copy link
Copy Markdown
Contributor

Good catch. Thank you @cmdlin.

@chyuv

chyuv commented May 25, 2025

Copy link
Copy Markdown
Author

Hi @adsr, is there any plan to support Windows(_WIN32/_WIN64)?

@adsr

adsr commented May 25, 2025

Copy link
Copy Markdown
Contributor

Yes, there are PRs for Windows support here and here. I didn't like adding that many ifdefs, so I didn't merge either. I think I'll either change this to be a codegen step, or maintain a completely separate header file for Windows. Either would be easy.

The more difficult thing to figure out is the test suite. I don't know the Windows equivalent of running a test program inside xterm inside Xvfb, using xvkbd to send input, dumping the terminal contents (print-immediate), and asserting on that output.

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.

2 participants