Permalink
Browse files

Add patch for CVE-2012-0845

  • Loading branch information...
1 parent 837cabd commit 0c4e2f99853d230597ce87ffdf3d84757d017eed @lwhsu committed Feb 18, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 files/patch-CVE-2012-0845
View
14 files/patch-CVE-2012-0845
@@ -0,0 +1,14 @@
+--- lib-python/2.7/SimpleXMLRPCServer.py.orig 2012-02-19 02:22:59.736459292 +0800
++++ lib-python/2.7/SimpleXMLRPCServer.py 2012-02-19 02:24:04.434444259 +0800
+@@ -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)
+

0 comments on commit 0c4e2f9

Please sign in to comment.