diff options
Diffstat (limited to 'lang/python25')
-rw-r--r-- | lang/python25/Makefile | 2 | ||||
-rw-r--r-- | lang/python25/files/patch-CVE-2012-0845 | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/lang/python25/Makefile b/lang/python25/Makefile index 6cf4d9f83670..d8d22f3e06f6 100644 --- a/lang/python25/Makefile +++ b/lang/python25/Makefile @@ -7,7 +7,7 @@ PORTNAME= python25 PORTVERSION= 2.5.6 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} diff --git a/lang/python25/files/patch-CVE-2012-0845 b/lang/python25/files/patch-CVE-2012-0845 new file mode 100644 index 000000000000..a205a7de0ea5 --- /dev/null +++ b/lang/python25/files/patch-CVE-2012-0845 @@ -0,0 +1,14 @@ +--- Lib/SimpleXMLRPCServer.py.orig 2011-06-11 19:46:23.000000000 +0400 ++++ Lib/SimpleXMLRPCServer.py 2012-02-15 12:50:23.000000000 +0400 +@@ -486,7 +486,10 @@ + L = [] + while size_remaining: + chunk_size = min(size_remaining, max_chunk_size) +- L.append(self.rfile.read(chunk_size)) ++ chunk = self.rfile.read(chunk_size) ++ if not chunk: ++ break ++ L.append(chunk) + size_remaining -= len(L[-1]) + data = ''.join(L) + |