Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/packet/bgp: fix flowspec parser to check the input length
case EC_SUBTYPE_FLOWSPEC_REDIRECT_IP6: ipv6 := net.IP(data[2:18]).String() localAdmin := binary.BigEndian.Uint16(data[18:20]) return NewRedirectIPv6AddressSpecificExtended(ipv6, localAdmin), nil Note that the `data` length is only checked for being at least 8 bytes, so any message with the given subtype but less than 20 bytes will crash the application.
- Loading branch information