diff options
author | drochner <drochner@pkgsrc.org> | 2008-04-11 10:32:33 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2008-04-11 10:32:33 +0000 |
commit | 5a15a8de9d9204fd455b7d807f2d87c60bf0044a (patch) | |
tree | 703fb61002fdf8803be76cba5733b70052ae1c57 /lang/python24 | |
parent | 2ee2ce8c25563c85184bed67f152024a94893757 (diff) | |
download | pkgsrc-5a15a8de9d9204fd455b7d807f2d87c60bf0044a.tar.gz |
fix possible buffer overflow by negative atguments to zlib.flush(),
from upstream CVS, bump PKGREVISION
Diffstat (limited to 'lang/python24')
-rw-r--r-- | lang/python24/Makefile | 4 | ||||
-rw-r--r-- | lang/python24/distinfo | 3 | ||||
-rw-r--r-- | lang/python24/patches/patch-au | 15 |
3 files changed, 19 insertions, 3 deletions
diff --git a/lang/python24/Makefile b/lang/python24/Makefile index 86e0b34ad06..9cb2b700f32 100644 --- a/lang/python24/Makefile +++ b/lang/python24/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.40 2008/01/18 05:06:45 tnn Exp $ +# $NetBSD: Makefile,v 1.41 2008/04/11 10:32:33 drochner Exp $ DISTNAME= Python-2.4.4 PKGNAME= python24-2.4.4 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= lang python MASTER_SITES= http://www.python.org/ftp/python/2.4.4/ EXTRACT_SUFX= .tar.bz2 diff --git a/lang/python24/distinfo b/lang/python24/distinfo index ecc68102a1b..978cb809998 100644 --- a/lang/python24/distinfo +++ b/lang/python24/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.26 2008/02/22 13:03:25 joerg Exp $ +$NetBSD: distinfo,v 1.27 2008/04/11 10:32:33 drochner Exp $ SHA1 (Python-2.4.4.tar.bz2) = 9e0971f93df8acbd947378d0d16a32fcc8897ba2 RMD160 (Python-2.4.4.tar.bz2) = 4c7b5b70178fe69881b62201ef0bab55037d8708 @@ -22,3 +22,4 @@ SHA1 (patch-ap) = 8fbfecdb80ee851db569b64201ccd94bd3552a81 SHA1 (patch-aq) = 10f1964892763e0d1b2345bd053d7929dd4b317e SHA1 (patch-ar) = f132998e3e81f3093f9bddf32fe6dcb40fcfa76f SHA1 (patch-at) = 9d66115cc561c99dcc3478678aa286c1c0c3df6b +SHA1 (patch-au) = d0a234efabe7d6a1f2b1dcbf26780fdc6b452214 diff --git a/lang/python24/patches/patch-au b/lang/python24/patches/patch-au new file mode 100644 index 00000000000..7c22037abeb --- /dev/null +++ b/lang/python24/patches/patch-au @@ -0,0 +1,15 @@ +$NetBSD: patch-au,v 1.1 2008/04/11 10:32:33 drochner Exp $ + +--- Modules/zlibmodule.c.orig 2008-04-11 12:21:45.000000000 +0200 ++++ Modules/zlibmodule.c +@@ -669,6 +669,10 @@ PyZlib_unflush(compobject *self, PyObjec + + if (!PyArg_ParseTuple(args, "|i:flush", &length)) + return NULL; ++ if (length <= 0) { ++ PyErr_SetString(PyExc_ValueError, "length must be greater than zero"); ++ return NULL; ++ } + if (!(retval = PyString_FromStringAndSize(NULL, length))) + return NULL; + |