summaryrefslogtreecommitdiff
path: root/lang/python26/patches/patch-CVE-2012-1150-Include_pydebug.h
blob: 88320925cda5e18c9b8287a12ab1d4c3da88faf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-CVE-2012-1150-Include_pydebug.h,v 1.1 2012/03/25 09:09:05 tron Exp $

Fix for CVE-2012-1150 taken from here:

http://hg.python.org/cpython/rev/6b7704fe1be1

--- Include/pydebug.h.orig	2008-05-06 23:41:46.000000000 +0100
+++ Include/pydebug.h	2012-03-25 09:51:50.000000000 +0100
@@ -26,6 +26,7 @@
 PyAPI_DATA(int) _Py_QnewFlag;
 /* Warn about 3.x issues */
 PyAPI_DATA(int) Py_Py3kWarningFlag;
+PyAPI_DATA(int) Py_HashRandomizationFlag;
 
 /* this is a wrapper around getenv() that pays attention to
    Py_IgnoreEnvironmentFlag.  It should be used for getting variables like