Commit 801c412
committed
* Fix OOB heap reads via TLSX_ExtractEch() by preemptively rejecting oversized
SNI names in TLSX_UseSNI().
* In TLSX_EchChangeSNI(), don't attempt to truncate if an oversized name is
seen, just return error.
* Move definition of WOLFSSL_HOST_NAME_MAX to an ungated context in ssl.h, and
use it consistently in tls.c, eliminating the duplicative
WOLFSSL_HOST_NAME_MAX.
1 parent f086e91 commit 801c412
3 files changed
Lines changed: 19 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2613 | 2613 | | |
2614 | 2614 | | |
2615 | 2615 | | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
2616 | 2619 | | |
2617 | 2620 | | |
2618 | 2621 | | |
| |||
13445 | 13448 | | |
13446 | 13449 | | |
13447 | 13450 | | |
13448 | | - | |
13449 | 13451 | | |
13450 | 13452 | | |
13451 | 13453 | | |
| |||
16101 | 16103 | | |
16102 | 16104 | | |
16103 | 16105 | | |
16104 | | - | |
16105 | | - | |
16106 | | - | |
16107 | | - | |
16108 | | - | |
16109 | | - | |
16110 | | - | |
16111 | | - | |
| 16106 | + | |
| 16107 | + | |
| 16108 | + | |
| 16109 | + | |
16112 | 16110 | | |
16113 | 16111 | | |
16114 | 16112 | | |
| |||
16161 | 16159 | | |
16162 | 16160 | | |
16163 | 16161 | | |
16164 | | - | |
| 16162 | + | |
16165 | 16163 | | |
16166 | | - | |
| 16164 | + | |
16167 | 16165 | | |
16168 | 16166 | | |
16169 | 16167 | | |
| |||
16303 | 16301 | | |
16304 | 16302 | | |
16305 | 16303 | | |
16306 | | - | |
| 16304 | + | |
16307 | 16305 | | |
16308 | | - | |
| 16306 | + | |
16309 | 16307 | | |
16310 | 16308 | | |
16311 | 16309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15202 | 15202 | | |
15203 | 15203 | | |
15204 | 15204 | | |
15205 | | - | |
| 15205 | + | |
| 15206 | + | |
| 15207 | + | |
15206 | 15208 | | |
15207 | | - | |
| 15209 | + | |
15208 | 15210 | | |
15209 | | - | |
15210 | | - | |
15211 | | - | |
| 15211 | + | |
| 15212 | + | |
| 15213 | + | |
15212 | 15214 | | |
15213 | 15215 | | |
15214 | 15216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| 458 | + | |
458 | 459 | | |
459 | 460 | | |
460 | 461 | | |
| |||
861 | 862 | | |
862 | 863 | | |
863 | 864 | | |
864 | | - | |
865 | 865 | | |
866 | 866 | | |
867 | 867 | | |
| |||
0 commit comments