mirror of
https://github.com/python/cpython.git
synced 2025-08-15 14:20:55 +00:00
Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
upon malformed POST request.
This commit is contained in:
parent
d358e0554b
commit
66f3cc6f8d
2 changed files with 7 additions and 1 deletions
|
@ -459,7 +459,10 @@ class SimpleXMLRPCRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
||||||
L = []
|
L = []
|
||||||
while size_remaining:
|
while size_remaining:
|
||||||
chunk_size = min(size_remaining, max_chunk_size)
|
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])
|
size_remaining -= len(L[-1])
|
||||||
data = ''.join(L)
|
data = ''.join(L)
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in
|
||||||
|
SimpleXMLRPCServer upon malformed POST request.
|
||||||
|
|
||||||
- Issue #13885: CVE-2011-3389: the _ssl module would always disable the CBC
|
- Issue #13885: CVE-2011-3389: the _ssl module would always disable the CBC
|
||||||
IV attack countermeasure.
|
IV attack countermeasure.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue