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

Invalid pointer operation at the SlNullPointers function #3470

Closed
DorpsGek opened this issue Jan 2, 2010 · 1 comment
Closed

Invalid pointer operation at the SlNullPointers function #3470

DorpsGek opened this issue Jan 2, 2010 · 1 comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Jan 2, 2010

msadel opened the ticket and wrote:

There is a possibility that the chunk handler in the SaveLoadParams structure (_sl.chs) is NULL. In that case dereferencing it in the for loop causes access violation exception
/*for (chsc = _sl.chs; (ch = chsc++) != NULL;) {/

Reproduction:

LoadIntroGame function calls the SaveOrLoad. If the SaveOrLoad function fails (no opntitle.dat file) the empty world should be generated, but instead of an empty world we have an exception.

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/3470
@DorpsGek
Copy link
Member Author

DorpsGek commented Jan 2, 2010

Rubidium closed the ticket.

Reason for closing: Fixed

In r18686


This comment was imported from FlySpray: https://bugs.openttd.org/task/3470

@DorpsGek DorpsGek closed this as completed Jan 2, 2010
@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant