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