summaryrefslogtreecommitdiff
path: root/dev-python/pyyaml/files
diff options
context:
space:
mode:
authorPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
committerPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
commitecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch)
treeb89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/pyyaml/files
parent1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff)
downloadbaldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip
Updating liguros repo
Diffstat (limited to 'dev-python/pyyaml/files')
-rw-r--r--dev-python/pyyaml/files/pyyaml-5.1-cve-2017-18342.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/pyyaml/files/pyyaml-5.1-cve-2017-18342.patch b/dev-python/pyyaml/files/pyyaml-5.1-cve-2017-18342.patch
new file mode 100644
index 000000000000..28626ba9e974
--- /dev/null
+++ b/dev-python/pyyaml/files/pyyaml-5.1-cve-2017-18342.patch
@@ -0,0 +1,40 @@
+diff --git a/lib/yaml/__init__.py b/lib/yaml/__init__.py
+index e7a419d..5f80761 100644
+--- a/lib/yaml/__init__.py
++++ b/lib/yaml/__init__.py
+@@ -106,6 +106,7 @@ def load(stream, Loader=None):
+ and produce the corresponding Python object.
+ """
+ if Loader is None:
++ raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
+ load_warning('load')
+ Loader = FullLoader
+
+@@ -121,6 +122,7 @@ def load_all(stream, Loader=None):
+ and produce corresponding Python objects.
+ """
+ if Loader is None:
++ raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
+ load_warning('load_all')
+ Loader = FullLoader
+
+diff --git a/lib3/yaml/__init__.py b/lib3/yaml/__init__.py
+index 5df0bb5..6952ba5 100644
+--- a/lib3/yaml/__init__.py
++++ b/lib3/yaml/__init__.py
+@@ -106,6 +106,7 @@ def load(stream, Loader=None):
+ and produce the corresponding Python object.
+ """
+ if Loader is None:
++ raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
+ load_warning('load')
+ Loader = FullLoader
+
+@@ -121,6 +122,7 @@ def load_all(stream, Loader=None):
+ and produce corresponding Python objects.
+ """
+ if Loader is None:
++ raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
+ load_warning('load_all')
+ Loader = FullLoader
+