HomeFreeBSD

Make TCP options parsing stricter.

Description

Make TCP options parsing stricter.

Rework tcpopts_parse() to be more strict. Use const pointer. Add length
checks for specific TCP options. The main purpose of the change is
avoiding of possible out of mbuf's data access.

Reported by: Maxime Villard
Reviewed by: melifaro, emaste
MFC after: 1 week

Details

Provenance
aeAuthored on
Parents
rS355711: Revert r355706 & r355710
Branches
Unknown
Tags
Unknown