Skip to content

Fix hang on UTF-16 LE BOM file#636

Draft
chrchr-github wants to merge 3 commits intodanmar:masterfrom
chrchr-github:chr_utf16
Draft

Fix hang on UTF-16 LE BOM file#636
chrchr-github wants to merge 3 commits intodanmar:masterfrom
chrchr-github:chr_utf16

Conversation

@chrchr-github
Copy link
Copy Markdown
Contributor

@chrchr-github chrchr-github commented Mar 27, 2026

fixes #637

@chrchr-github chrchr-github changed the title Fix hang on UTF- 16 LE BOM file Fix hang on UTF-16 LE BOM file Mar 27, 2026
@firewave
Copy link
Copy Markdown
Collaborator

firewave commented Mar 27, 2026

Yeah - there's several places which lack checks for EOF. I have WIP tests for that and other corner cases/gaps somewhere - something to be done in preparation of #566.

@firewave
Copy link
Copy Markdown
Collaborator

With #647 it should be possible to write a test which uses the input in question.

@chrchr-github
Copy link
Copy Markdown
Contributor Author

With #647 it should be possible to write a test which uses the input in question.

Can we just run the tests with all three options?

@firewave
Copy link
Copy Markdown
Collaborator

Can we just run the tests with all three options?

Yes, if somebody adds the functionality. It didn't seem straight forward to me so I haven't yet. Feel free to do so.

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.

Hang on UTF-16 with BOM

2 participants