[Commits] [wesnoth/wesnoth] d4df2c: Remove negative index use-case

GitHub noreply at github.com
Tue Nov 21 18:12:45 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: d4df2cc6c40649eedc95dc01213a91b6ccfccd54
      https://github.com/wesnoth/wesnoth/commit/d4df2cc6c40649eedc95dc01213a91b6ccfccd54
  Author: Alexander van Gessel <ai0867 at gmail.com>
  Date:   2017-11-22 (Wed, 22 Nov 2017)

  Changed paths:
    M src/pathfind/pathfind.cpp

  Log Message:
  -----------
  Remove negative index use-case


  Commit: 554555bb0380b7b3fb2be77fb92b4b7ac04d6527
      https://github.com/wesnoth/wesnoth/commit/554555bb0380b7b3fb2be77fb92b4b7ac04d6527
  Author: Alexander van Gessel <ai0867 at gmail.com>
  Date:   2017-11-22 (Wed, 22 Nov 2017)

  Changed paths:
    M src/pathfind/pathfind.cpp

  Log Message:
  -----------
  Assert that indexes are on board


  Commit: 80cae581ab79463cc148ee589954b1476511ba18
      https://github.com/wesnoth/wesnoth/commit/80cae581ab79463cc148ee589954b1476511ba18
  Author: Alexander van Gessel <ai0867 at gmail.com>
  Date:   2017-11-22 (Wed, 22 Nov 2017)

  Changed paths:
    M src/pathfind/pathfind.cpp

  Log Message:
  -----------
  Make check earlier


  Commit: 1a983277798c200fc17cabee119993c78dfe065b
      https://github.com/wesnoth/wesnoth/commit/1a983277798c200fc17cabee119993c78dfe065b
  Author: Alexander van Gessel <ai0867 at gmail.com>
  Date:   2017-11-22 (Wed, 22 Nov 2017)

  Changed paths:
    M src/pathfind/pathfind.cpp

  Log Message:
  -----------
  Convert indexes to unsigned

This should assure coverity that no negative indexes will be used.


Compare: https://github.com/wesnoth/wesnoth/compare/b1c9cb41c374...1a983277798c


More information about the Commits mailing list