Skip to content
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

Fix #6969: Account for BOM when reading script files #6971

Merged
merged 1 commit into from Nov 17, 2018

Conversation

@LordAro
Copy link
Member

@LordAro LordAro commented Nov 15, 2018

Squirrel was reading past the end of files files that had a BOM and a size that's a multiple of 512 bytes

What a nice edge case.

frosch123
frosch123 previously requested changes Nov 15, 2018
src/script/squirrel.cpp Outdated Show resolved Hide resolved
src/script/squirrel.cpp Outdated Show resolved Hide resolved
src/script/squirrel.cpp Outdated Show resolved Hide resolved
@nielsmh nielsmh merged commit 6accbf9 into OpenTTD:master Nov 17, 2018
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants