TLV-TYPE of name component MUST be in the range 1-65535 (inclusive). Name element containing a sub-element out of this range is invalid and the packet SHOULD be dropped. This requirement overrides the TLV evolvability guidelines.
But Name.from_str and Name.encode happily accept them:
The spec says they're invalid:
But
Name.from_str
andName.encode
happily accept them:I haven't checked the decoding routines but similar checks should be added there too.