Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > media > contrib-updates-src > by-pkgid > f722e3fddb6bcd9335a8848a4b05a73c > files > 6

xbmc-10.1-1.pvr.2mdv2010.2.src.rpm

From a6951187d148fbbf64f80352c4d5f5763a56d478 Mon Sep 17 00:00:00 2001
From: Anssi Hannula <anssi.hannula@iki.fi>
Date: Sat, 13 Nov 2010 07:33:05 +0200
Subject: [PATCH 01/15] fixed: CVE-2007-2052 in internal python (Mandriva)

---
 xbmc/lib/libPython/Python/Modules/_localemodule.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xbmc/lib/libPython/Python/Modules/_localemodule.c b/xbmc/lib/libPython/Python/Modules/_localemodule.c
index af6a615..e2462fc 100644
--- a/xbmc/lib/libPython/Python/Modules/_localemodule.c
+++ b/xbmc/lib/libPython/Python/Modules/_localemodule.c
@@ -357,7 +357,7 @@ PyLocale_strxfrm(PyObject* self, PyObject* args)
     buf = PyMem_Malloc(n1);
     if (!buf)
         return PyErr_NoMemory();
-    n2 = strxfrm(buf, s, n1);
+    n2 = strxfrm(buf, s, n1) + 1;
     if (n2 > n1) {
         /* more space needed */
         buf = PyMem_Realloc(buf, n2);
-- 
1.7.3