[Commits] [wesnoth/wesnoth] daf08b: Fix UB in attack_predictions::set_data()

GitHub noreply at github.com
Tue Jan 24 17:14:04 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: daf08b68254cdeb36dccf00134f31dcaee51d8be
      https://github.com/wesnoth/wesnoth/commit/daf08b68254cdeb36dccf00134f31dcaee51d8be
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2017-01-24 (Tue, 24 Jan 2017)

  Changed paths:
    M src/gui/dialogs/attack_predictions.cpp

  Log Message:
  -----------
  Fix UB in attack_predictions::set_data()

Dereferencing an end iterator is undefined behavior.
With Microsoft debug CRT it causes a crash.





More information about the Commits mailing list