Skip to content

Commit 26d5788

Browse files
authored
Merge pull request #3491 from bdarnell/merge-642
docs: Copy 6.4.2 release notes to master branch
2 parents 1566286 + b841594 commit 26d5788

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

docs/releases.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Release notes
44
.. toctree::
55
:maxdepth: 2
66

7+
releases/v6.4.2
78
releases/v6.4.1
89
releases/v6.4.0
910
releases/v6.3.3

docs/releases/v6.4.2.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
What's new in Tornado 6.4.2
2+
===========================
3+
4+
Nov 21, 2024
5+
------------
6+
7+
Security Improvements
8+
~~~~~~~~~~~~~~~~~~~~~
9+
10+
- Parsing of the cookie header is now much more efficient. The older algorithm sometimes had
11+
quadratic performance which allowed for a denial-of-service attack in which the server would spend
12+
excessive CPU time parsing cookies and block the event loop. This change fixes CVE-2024-7592.

tornado/routing.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,18 @@ def request_callable(request):
184184
from tornado.log import app_log
185185
from tornado.util import basestring_type, import_object, re_unescape, unicode_type
186186

187-
from typing import Any, Union, Optional, Awaitable, List, Dict, Pattern, Tuple, overload, Sequence
187+
from typing import (
188+
Any,
189+
Union,
190+
Optional,
191+
Awaitable,
192+
List,
193+
Dict,
194+
Pattern,
195+
Tuple,
196+
overload,
197+
Sequence,
198+
)
188199

189200

190201
class Router(httputil.HTTPServerConnectionDelegate):

0 commit comments

Comments
 (0)