summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-05-21 17:12:38 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-05-21 17:12:38 (GMT)
commit6a2656094d1806abc5229758246865bcbaa34c5e (patch)
tree787da764ae5b179c79182e62976314c6bfb8c9d4 /Include
parenta85bd06a82276863382b825de82aaa89760b0fa1 (diff)
downloadcpython-6a2656094d1806abc5229758246865bcbaa34c5e.zip
cpython-6a2656094d1806abc5229758246865bcbaa34c5e.tar.gz
cpython-6a2656094d1806abc5229758246865bcbaa34c5e.tar.bz2
Issue #5753: A new C API function, :cfunc:`PySys_SetArgvEx`, allows
embedders of the interpreter to set sys.argv without also modifying sys.path. This helps fix `CVE-2008-5983 <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5983>`_.
Diffstat (limited to 'Include')
-rw-r--r--Include/sysmodule.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/sysmodule.h b/Include/sysmodule.h
index 536a180..16af119 100644
--- a/Include/sysmodule.h
+++ b/Include/sysmodule.h
@@ -11,6 +11,7 @@ PyAPI_FUNC(PyObject *) PySys_GetObject(char *);
PyAPI_FUNC(int) PySys_SetObject(char *, PyObject *);
PyAPI_FUNC(FILE *) PySys_GetFile(char *, FILE *);
PyAPI_FUNC(void) PySys_SetArgv(int, char **);
+PyAPI_FUNC(void) PySys_SetArgvEx(int, char **, int);
PyAPI_FUNC(void) PySys_SetPath(char *);
PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)