[Commits] [wesnoth/wesnoth] b7c32c: Accept ".." in file paths everywhere

GitHub noreply at github.com
Sun May 7 15:05:15 UTC 2017


  Branch: refs/heads/rel_paths
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b7c32c3877df5e4a0a6fdf1ff0dc22c57e42b558
      https://github.com/wesnoth/wesnoth/commit/b7c32c3877df5e4a0a6fdf1ff0dc22c57e42b558
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-07 (Sun, 07 May 2017)

  Changed paths:
    M src/filesystem_boost.cpp
    M src/game_config_manager.cpp
    M src/scripting/lua_fileops.cpp
    M src/tests/test_filesystem.cpp

  Log Message:
  -----------
  Accept ".." in file paths everywhere

This accepts ".." without escaping the sandbox by first resolving it and
failing if the result begins in "..". Only then is the relative path
resolved to an absolute path.


  Commit: ba42e2cf14034438078b38e1539ebc8d3c70c779
      https://github.com/wesnoth/wesnoth/commit/ba42e2cf14034438078b38e1539ebc8d3c70c779
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-07 (Sun, 07 May 2017)

  Changed paths:
    M src/filesystem_boost.cpp

  Log Message:
  -----------
  Safety net (suggested by @gfgtdf)


Compare: https://github.com/wesnoth/wesnoth/compare/1973b6524f99...ba42e2cf1403


More information about the Commits mailing list