summaryrefslogtreecommitdiff
path: root/lang/python24/patches/patch-ba
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python24/patches/patch-ba')
-rw-r--r--lang/python24/patches/patch-ba25
1 files changed, 0 insertions, 25 deletions
diff --git a/lang/python24/patches/patch-ba b/lang/python24/patches/patch-ba
deleted file mode 100644
index 3a4c47fe2d4..00000000000
--- a/lang/python24/patches/patch-ba
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: patch-ba,v 1.1 2008/08/05 10:13:34 drochner Exp $
-
---- Modules/gcmodule.c.orig 2006-09-28 19:08:01.000000000 +0200
-+++ Modules/gcmodule.c
-@@ -1249,7 +1249,10 @@ PyObject *
- _PyObject_GC_Malloc(size_t basicsize)
- {
- PyObject *op;
-- PyGC_Head *g = PyObject_MALLOC(sizeof(PyGC_Head) + basicsize);
-+ PyGC_Head *g;
-+ if (basicsize > INT_MAX - sizeof(PyGC_Head))
-+ return PyErr_NoMemory();
-+ g = PyObject_MALLOC(sizeof(PyGC_Head) + basicsize);
- if (g == NULL)
- return PyErr_NoMemory();
- g->gc.gc_refs = GC_UNTRACKED;
-@@ -1291,6 +1294,8 @@ _PyObject_GC_Resize(PyVarObject *op, int
- {
- const size_t basicsize = _PyObject_VAR_SIZE(op->ob_type, nitems);
- PyGC_Head *g = AS_GC(op);
-+ if (basicsize > INT_MAX - sizeof(PyGC_Head))
-+ return (PyVarObject *)PyErr_NoMemory();
- g = PyObject_REALLOC(g, sizeof(PyGC_Head) + basicsize);
- if (g == NULL)
- return (PyVarObject *)PyErr_NoMemory();