diff Include/sysmodule.h @ 61789:3f08d98c8fa5 2.6

Merged revisions 81398 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81398 | antoine.pitrou | 2010-05-21 19:12:38 +0200 (ven., 21 mai 2010) | 6 lines 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>`_. ........
author Antoine Pitrou <solipsis@pitrou.net>
date Fri, 21 May 2010 17:22:43 +0000
parents 840064802952
children 6074530b526f
line wrap: on
line diff
--- a/Include/sysmodule.h	Fri May 21 13:08:20 2010 +0000
+++ b/Include/sysmodule.h	Fri May 21 17:22:43 2010 +0000
@@ -11,6 +11,7 @@
 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, ...)