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 #7553: validate the number of allocated strings #7554

Merged
merged 1 commit into from May 1, 2019

Conversation

glx22
Copy link
Contributor

@glx22 glx22 commented Apr 30, 2019

Prevents the crash, but the error is not reported in script debug window.

Also based on

static const uint TAB_SIZE_GAMESCRIPT = TAB_SIZE * 32;
introduced in 2bb80d2, I think
StringData data(1);
should be StringData data(32);

@PeterN
Copy link
Member

PeterN commented May 1, 2019

My fix was... shorter (and therefore probably incomplete), but still does not show as an error in the script debug window. PeterN@d267637

@glx22 glx22 merged commit cef9a76 into OpenTTD:master May 1, 2019
@glx22 glx22 deleted the fix7553 branch May 1, 2019 17:13
@glx22 glx22 added the backport requested This PR should be backport to current release (RC / stable) label May 1, 2019
PeterN pushed a commit to PeterN/OpenTTD that referenced this pull request May 2, 2019
@LordAro LordAro added backported This PR is backported to a current release (RC / stable) and removed backport requested This PR should be backport to current release (RC / stable) labels May 28, 2019
douiwby pushed a commit to douiwby/OpenTTD that referenced this pull request Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported This PR is backported to a current release (RC / stable)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants