Commit 2f51508
committed
tls: fix TLSX_ALPN_GetSize word16 overflow (F-2128)
Match the TLSX_SNI_GetSize pattern: use a word32 accumulator and return
0 if the aggregate size exceeds WOLFSSL_MAX_16BIT, so a large number of
ALPN entries can no longer silently wrap the length computation.1 parent fb64844 commit 2f51508
1 file changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1809 | 1809 | | |
1810 | 1810 | | |
1811 | 1811 | | |
1812 | | - | |
| 1812 | + | |
1813 | 1813 | | |
1814 | 1814 | | |
1815 | 1815 | | |
1816 | 1816 | | |
1817 | 1817 | | |
1818 | | - | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
1819 | 1823 | | |
1820 | 1824 | | |
1821 | | - | |
| 1825 | + | |
1822 | 1826 | | |
1823 | 1827 | | |
1824 | 1828 | | |
| |||
14838 | 14842 | | |
14839 | 14843 | | |
14840 | 14844 | | |
14841 | | - | |
14842 | | - | |
| 14845 | + | |
| 14846 | + | |
| 14847 | + | |
| 14848 | + | |
| 14849 | + | |
| 14850 | + | |
| 14851 | + | |
| 14852 | + | |
14843 | 14853 | | |
| 14854 | + | |
14844 | 14855 | | |
14845 | 14856 | | |
14846 | 14857 | | |
| |||
0 commit comments