Commit f4242e2
http2: handle 0-length headers better
Ignore headers with 0-length names and track memory for headers
the way we track it for other HTTP/2 session memory too.
This is intended to mitigate CVE-2019-9516.
Backport-PR-URL: #29123
PR-URL: #29122
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>1 parent 477461a commit f4242e2
File tree
3 files changed
+37
-2
lines changed- src
- test/parallel
3 files changed
+37
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1318 | 1318 | | |
1319 | 1319 | | |
1320 | 1320 | | |
| 1321 | + | |
| 1322 | + | |
1321 | 1323 | | |
1322 | 1324 | | |
1323 | 1325 | | |
| |||
1975 | 1977 | | |
1976 | 1978 | | |
1977 | 1979 | | |
| 1980 | + | |
1978 | 1981 | | |
1979 | 1982 | | |
1980 | 1983 | | |
| |||
1989 | 1992 | | |
1990 | 1993 | | |
1991 | 1994 | | |
| 1995 | + | |
1992 | 1996 | | |
1993 | 1997 | | |
1994 | 1998 | | |
| |||
2260 | 2264 | | |
2261 | 2265 | | |
2262 | 2266 | | |
2263 | | - | |
2264 | | - | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
2265 | 2273 | | |
2266 | 2274 | | |
2267 | 2275 | | |
| |||
2277 | 2285 | | |
2278 | 2286 | | |
2279 | 2287 | | |
| 2288 | + | |
2280 | 2289 | | |
2281 | 2290 | | |
2282 | 2291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments