Commit c92861e
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 fa9f24f commit c92861e
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 | | |
| |||
14926 | 14930 | | |
14927 | 14931 | | |
14928 | 14932 | | |
14929 | | - | |
14930 | | - | |
| 14933 | + | |
| 14934 | + | |
| 14935 | + | |
| 14936 | + | |
| 14937 | + | |
| 14938 | + | |
| 14939 | + | |
| 14940 | + | |
14931 | 14941 | | |
| 14942 | + | |
14932 | 14943 | | |
14933 | 14944 | | |
14934 | 14945 | | |
| |||
0 commit comments