diff options
Diffstat (limited to 'lang/python27/patches/patch-CVE-2012-1150-Lib_test_test_sys.py')
-rw-r--r-- | lang/python27/patches/patch-CVE-2012-1150-Lib_test_test_sys.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lang/python27/patches/patch-CVE-2012-1150-Lib_test_test_sys.py b/lang/python27/patches/patch-CVE-2012-1150-Lib_test_test_sys.py new file mode 100644 index 00000000000..e6f5da477bc --- /dev/null +++ b/lang/python27/patches/patch-CVE-2012-1150-Lib_test_test_sys.py @@ -0,0 +1,17 @@ +$NetBSD: patch-CVE-2012-1150-Lib_test_test_sys.py,v 1.1 2012/03/24 12:04:37 tron Exp $ + +Fix for CVE-2012-1150 taken from here: + +http://hg.python.org/cpython/rev/a0f43f4481e0 + +--- Lib/test/test_sys.py.orig 2011-06-11 16:46:26.000000000 +0100 ++++ Lib/test/test_sys.py 2012-03-24 11:02:25.000000000 +0000 +@@ -426,7 +426,7 @@ + attrs = ("debug", "py3k_warning", "division_warning", "division_new", + "inspect", "interactive", "optimize", "dont_write_bytecode", + "no_site", "ignore_environment", "tabcheck", "verbose", +- "unicode", "bytes_warning") ++ "unicode", "bytes_warning", "hash_randomization") + for attr in attrs: + self.assertTrue(hasattr(sys.flags, attr), attr) + self.assertEqual(type(getattr(sys.flags, attr)), int, attr) |