TCP options have up to three fields (kind, length, value). The current code only checks for the presence of the first field. Before accessing the second field (length) the code must ensure that a length field is even present.
TCP options have up to three fields (kind, length, value). The current code only checks for the presence of the first field. Before accessing the second field (length) the code must ensure that a length field is even present.