Commit ed686d9
committed
tls: fix TLSX_TCA_GetSize word16 overflow (F-2131)
Mirror the TLSX_SNI_GetSize pattern: accumulate into a word32 and
return 0 when the aggregate size exceeds WOLFSSL_MAX_16BIT so large
idSz values or many TCA entries no longer silently wrap to a small
value that undersizes the TLSX_TCA_Write output buffer.1 parent 51817a9 commit ed686d9
1 file changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2942 | 2942 | | |
2943 | 2943 | | |
2944 | 2944 | | |
2945 | | - | |
| 2945 | + | |
2946 | 2946 | | |
2947 | 2947 | | |
2948 | 2948 | | |
| |||
2960 | 2960 | | |
2961 | 2961 | | |
2962 | 2962 | | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
2963 | 2967 | | |
2964 | 2968 | | |
2965 | | - | |
| 2969 | + | |
2966 | 2970 | | |
2967 | 2971 | | |
2968 | 2972 | | |
| |||
14798 | 14802 | | |
14799 | 14803 | | |
14800 | 14804 | | |
14801 | | - | |
14802 | | - | |
| 14805 | + | |
| 14806 | + | |
| 14807 | + | |
| 14808 | + | |
| 14809 | + | |
| 14810 | + | |
| 14811 | + | |
| 14812 | + | |
| 14813 | + | |
14803 | 14814 | | |
14804 | 14815 | | |
14805 | 14816 | | |
| |||
0 commit comments