aboutsummaryrefslogtreecommitdiff
path: root/lang/python24/files/patch-modules_stropmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python24/files/patch-modules_stropmodule.c')
-rw-r--r--lang/python24/files/patch-modules_stropmodule.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/lang/python24/files/patch-modules_stropmodule.c b/lang/python24/files/patch-modules_stropmodule.c
deleted file mode 100644
index 13e0c837b3c6..000000000000
--- a/lang/python24/files/patch-modules_stropmodule.c
+++ /dev/null
@@ -1,31 +0,0 @@
---- Modules/stropmodule.c.orig 2008-03-02 20:20:32.000000000 +0100
-+++ Modules/stropmodule.c
-@@ -214,6 +214,13 @@ strop_joinfields(PyObject *self, PyObjec
- return NULL;
- }
- slen = PyString_GET_SIZE(item);
-+ if (slen > INT_MAX - reslen ||
-+ seplen > INT_MAX - reslen - seplen) {
-+ PyErr_SetString(PyExc_OverflowError,
-+ "input too long");
-+ Py_DECREF(res);
-+ return NULL;
-+ }
- while (reslen + slen + seplen >= sz) {
- if (_PyString_Resize(&res, sz * 2) < 0)
- return NULL;
-@@ -251,6 +258,14 @@ strop_joinfields(PyObject *self, PyObjec
- return NULL;
- }
- slen = PyString_GET_SIZE(item);
-+ if (slen > INT_MAX - reslen ||
-+ seplen > INT_MAX - reslen - seplen) {
-+ PyErr_SetString(PyExc_OverflowError,
-+ "input too long");
-+ Py_DECREF(res);
-+ Py_XDECREF(item);
-+ return NULL;
-+ }
- while (reslen + slen + seplen >= sz) {
- if (_PyString_Resize(&res, sz * 2) < 0) {
- Py_DECREF(item);