Commit 8b44b00
committed
Fix issues found during src/ code review
- ECH: add bounds check on hpkePubkeyLen against HPKE_Npk_MAX to
prevent heap buffer overflow from untrusted ECH config data
- Sniffer: fix reassembly memory limit check typo, MaxRecoveryMemory -1
should be MaxRecoveryMemory != -1
- Sniffer: add bounds check in IPv6 extension header parsing loop to
prevent OOB read when next_header never matches TCP or NO_NEXT_HEADER
- Sniffer: validate tlsFragOffset + rhSize against tlsFragSize before
XMEMCPY in both TLS handshake fragment reassembly paths
- Internal: use WC_SAFE_SUM_WORD32 in GrowAnOutputBuffer to prevent
integer overflow on allocation size, matching existing pattern in
GrowOutputBuffer1 parent 4fe05d7 commit 8b44b00
3 files changed
Lines changed: 29 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11294 | 11294 | | |
11295 | 11295 | | |
11296 | 11296 | | |
| 11297 | + | |
11297 | 11298 | | |
11298 | 11299 | | |
11299 | 11300 | | |
| |||
11304 | 11305 | | |
11305 | 11306 | | |
11306 | 11307 | | |
11307 | | - | |
11308 | | - | |
| 11308 | + | |
| 11309 | + | |
| 11310 | + | |
| 11311 | + | |
| 11312 | + | |
| 11313 | + | |
| 11314 | + | |
11309 | 11315 | | |
11310 | 11316 | | |
11311 | 11317 | | |
| |||
11318 | 11324 | | |
11319 | 11325 | | |
11320 | 11326 | | |
11321 | | - | |
| 11327 | + | |
11322 | 11328 | | |
11323 | 11329 | | |
11324 | 11330 | | |
| |||
11339 | 11345 | | |
11340 | 11346 | | |
11341 | 11347 | | |
11342 | | - | |
| 11348 | + | |
11343 | 11349 | | |
11344 | 11350 | | |
11345 | 11351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2146 | 2146 | | |
2147 | 2147 | | |
2148 | 2148 | | |
2149 | | - | |
| 2149 | + | |
| 2150 | + | |
2150 | 2151 | | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
2151 | 2156 | | |
2152 | 2157 | | |
2153 | 2158 | | |
| |||
4571 | 4576 | | |
4572 | 4577 | | |
4573 | 4578 | | |
| 4579 | + | |
| 4580 | + | |
| 4581 | + | |
| 4582 | + | |
4574 | 4583 | | |
4575 | 4584 | | |
4576 | 4585 | | |
| |||
4625 | 4634 | | |
4626 | 4635 | | |
4627 | 4636 | | |
| 4637 | + | |
| 4638 | + | |
| 4639 | + | |
| 4640 | + | |
4628 | 4641 | | |
4629 | 4642 | | |
4630 | 4643 | | |
| |||
5622 | 5635 | | |
5623 | 5636 | | |
5624 | 5637 | | |
5625 | | - | |
| 5638 | + | |
5626 | 5639 | | |
5627 | 5640 | | |
5628 | 5641 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
583 | 587 | | |
584 | 588 | | |
585 | 589 | | |
| |||
0 commit comments