<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39842 >

Good daytime!

branches/s2_1, r13919

Start a game, say 'read civ2.serv' while game is already started and see
gui-gtk segfault... Say 'quit' and see segfault of civserver...

Reason: nations are already freed when nation_of_player() is called.
And both nation_of_player() and bounds_check_nation() don't check for
nation is NULL.

1. Why 'rulesetdir' isn't disallowed in already started game?
2. How to fix usage of nation_of_player()? [ie, what way is better?]
3. Is there a reason not to have a check in bounds_check_nation()?

Thanks, evyscr

Freeciv-dev mailing list

Reply via email to