Skip to content

Commit cd6106c

Browse files
committed
python3Packages.tornado_4: add patch for CVE-2023-28370
1 parent 61a8a77 commit cd6106c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • pkgs/development/python-modules/tornado

pkgs/development/python-modules/tornado/4.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
, unittestCheckHook
33
, buildPythonPackage
44
, fetchPypi
5+
, fetchpatch
56
, isPy27
67
, pythonAtLeast
78
}:
@@ -16,6 +17,14 @@ buildPythonPackage rec {
1617
sha256 = "02jzd23l4r6fswmwxaica9ldlyc2p6q8dk6dyff7j58fmdzf853d";
1718
};
1819

20+
patches = [
21+
(fetchpatch {
22+
name = "CVE-2023-28370.patch";
23+
url = "https://github.com/tornadoweb/tornado/commit/32ad07c54e607839273b4e1819c347f5c8976b2f.patch";
24+
hash = "sha256-2dpPHkNThOaZD8T2g1vb/I5WYZ/vy/t690539uprJyc=";
25+
})
26+
];
27+
1928
nativeCheckInputs = [ unittestCheckHook ];
2029

2130
# We specify the name of the test files to prevent

0 commit comments

Comments
 (0)