Commit 0a7967d
committed
Fix possible out-of-bounds read in tcp_options fix
Out-of-bounds read could occur in `p[i] < 2` before boundary of `i` is
checked.
Basically it's returning previous code except for a fix and early
zeroing of `ret`.
Fixes: a1386af ("tcp options: fix possible shift-out-of-bounds")
Signed-off-by: ABC <abc@openwall.com>1 parent faf869c commit 0a7967d
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4852 | 4852 | | |
4853 | 4853 | | |
4854 | 4854 | | |
4855 | | - | |
| 4855 | + | |
| 4856 | + | |
4856 | 4857 | | |
4857 | | - | |
| 4858 | + | |
| 4859 | + | |
4858 | 4860 | | |
4859 | | - | |
| 4861 | + | |
4860 | 4862 | | |
| 4863 | + | |
| 4864 | + | |
4861 | 4865 | | |
4862 | 4866 | | |
4863 | 4867 | | |
| |||
0 commit comments