[Commits] [wesnoth/wesnoth] c4feb9: fix ub when starting a mp game

GitHub noreply at github.com
Wed Dec 14 01:17:33 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: c4feb997a9d7a1d10c1ff86ddd11f092d95ea95e
      https://github.com/wesnoth/wesnoth/commit/c4feb997a9d7a1d10c1ff86ddd11f092d95ea95e
  Author: gfgtdf <daniel.gfgtdf at gmail.com>
  Date:   2016-12-14 (Wed, 14 Dec 2016)

  Changed paths:
    M src/game_initialization/configure_engine.hpp

  Log Message:
  -----------
  fix ub when starting a mp game 

the code in mp_create_game calls config_engine_->game_name_default where config_engine_ is nullptr which crashes if the compiler does debug checks on whether config_engine_ is not nullptr before game_name_default() is called.





More information about the Commits mailing list