[Commits] [wesnoth/wesnoth] f16dec: fix a stack corruption

GitHub noreply at github.com
Thu Jun 4 19:31:27 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: f16dec91b93f08844d999c9056d165951c980148
      https://github.com/wesnoth/wesnoth/commit/f16dec91b93f08844d999c9056d165951c980148
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-06-04 (Thu, 04 Jun 2015)

  Changed paths:
    M src/gui/dialogs/editor/editor_edit_side.cpp

  Log Message:
  -----------
  fix a stack corruption

Gui 2 dialogs set the value passed to register_integer to the widgets
value when the dialog is closed. So they must live linger than the
dialog. In thise case a local variable of the dialogs constructor was
passed to register_integer which caused a stack corruption.


  Commit: 08e3862efa2e1ce48109cd76a72e8ad2b6a64d7b
      https://github.com/wesnoth/wesnoth/commit/08e3862efa2e1ce48109cd76a72e8ad2b6a64d7b
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-06-04 (Thu, 04 Jun 2015)

  Changed paths:
    M src/editor/map/map_context.cpp
    M src/game_initialization/multiplayer_configure.cpp
    M src/game_initialization/multiplayer_create.cpp
    M src/gui/dialogs/advanced_graphics_options.cpp
    M src/make_enum.hpp
    M src/menu_events.cpp
    M src/scripting/lua_team.cpp
    M src/side_filter.cpp

  Log Message:
  -----------
  add to_string method to MAKE_ENUM

structs generated by the MAKE_ENUM makro now have a .to_string() method.


Compare: https://github.com/wesnoth/wesnoth/compare/04c8aacee15e...08e3862efa2e


More information about the Commits mailing list