rpms/gnumeric/devel gnumeric-1.8.2-python.patch,NONE,1.1

Huzaifa Sidhpurwala huzaifas at fedoraproject.org
Mon Feb 16 10:18:27 UTC 2009


Author: huzaifas

Update of /cvs/pkgs/rpms/gnumeric/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24016

Added Files:
	gnumeric-1.8.2-python.patch 
Log Message:
Resolve: CVE-2009-5983, disable gda support

gnumeric-1.8.2-python.patch:

--- NEW FILE gnumeric-1.8.2-python.patch ---
--- gnumeric-1.8.2/plugins/python-loader/gnm-py-interpreter.c	2008-01-18 21:28:20.000000000 +0100
+++ gnumeric-1.8.2/plugins/python-loader/gnm-py-interpreter.c.new	2009-01-28 22:58:40.000000000 +0100
@@ -101,6 +101,7 @@
 	interpreter->plugin = plugin;
 
 	PySys_SetArgv (G_N_ELEMENTS (plugin_argv) - 1, plugin_argv);
+	PyRun_SimpleString("import sys; sys.path = filter(None, sys.path)");
 	py_initgnumeric (interpreter);
 
 	return interpreter;




More information about the scm-commits mailing list