diff options
author | Erik Mackdanz <stasibear@gentoo.org> | 2019-04-19 03:16:43 -0500 |
---|---|---|
committer | Erik Mackdanz <stasibear@gentoo.org> | 2019-04-19 03:16:43 -0500 |
commit | 1cb29e8d5cca1b552bf8229a80087fe336791e22 (patch) | |
tree | 1af592a3f00980354c3082f3a11cc9c9caddd876 /games-roguelike/stone-soup | |
parent | sys-libs/glibc: disable c++ detection for cross-case, bug #683074 (diff) | |
download | gentoo-1cb29e8d5cca1b552bf8229a80087fe336791e22.tar.gz gentoo-1cb29e8d5cca1b552bf8229a80087fe336791e22.tar.bz2 gentoo-1cb29e8d5cca1b552bf8229a80087fe336791e22.zip |
games-roguelike/stone-soup: Patch out unsafe pyyaml load call
Closes: https://bugs.gentoo.org/683466
Signed-off-by: Erik Mackdanz <stasibear@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Diffstat (limited to 'games-roguelike/stone-soup')
-rw-r--r-- | games-roguelike/stone-soup/files/pyyaml-safe-load.patch | 11 | ||||
-rw-r--r-- | games-roguelike/stone-soup/stone-soup-0.23.2.ebuild | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/games-roguelike/stone-soup/files/pyyaml-safe-load.patch b/games-roguelike/stone-soup/files/pyyaml-safe-load.patch new file mode 100644 index 000000000000..dfbcdc96e1ad --- /dev/null +++ b/games-roguelike/stone-soup/files/pyyaml-safe-load.patch @@ -0,0 +1,11 @@ +--- /util/species-gen.py 2019-04-18 23:19:07.444170831 -0500 ++++ /util/species-gen.py 2019-04-18 23:20:19.958169533 -0500 +@@ -417,7 +417,7 @@ + continue + f_path = os.path.join(args.datadir, f_name) + try: +- species_spec = yaml.load(open(f_path)) ++ species_spec = yaml.safe_load(open(f_path)) + except yaml.YAMLError as e: + print("Failed to load %s: %s" % (f_name, e)) + sys.exit(1) diff --git a/games-roguelike/stone-soup/stone-soup-0.23.2.ebuild b/games-roguelike/stone-soup/stone-soup-0.23.2.ebuild index 97418769c952..a587c1998687 100644 --- a/games-roguelike/stone-soup/stone-soup-0.23.2.ebuild +++ b/games-roguelike/stone-soup/stone-soup-0.23.2.ebuild @@ -63,6 +63,7 @@ S=${WORKDIR}/${MY_P}/source S_TEST=${WORKDIR}/${MY_P}_test/source PATCHES=( "${FILESDIR}"/gitless.patch + "${FILESDIR}"/pyyaml-safe-load.patch "${FILESDIR}"/rltiles-ldflags-libs.patch ) |