concept
Bounded offline IPv4 decode
Read version, IHL, length and selected fixed header fields only after bounds checks.
Formal Syntax & Structure
networking syntaxnetworking
Bounded offline IPv4 decodeWorking Example
Example Snippetnetworking
45 -> IPv4, IHL 5 -> 20 bytes; 00 1c -> 28 bytes