3 ms·
DNS name (de)compression is super tricky and even experts get it wrong in production code, so it's a forgivable mistake :-) It's an interesting trap/pitfall, t
by fanf2 6y ago
DNS name (de)compression is super tricky and even experts get it wrong in production code, so it's a forgivable mistake :-)
It's an interesting trap/pitfall, though, because it's an example of a situation where basic memory safety isn't enough. I would love to see some examples of how to use Rust's type system to protect against DNS name compression loops, e.g. using a slice of the packet to force compression pointers to go backwards.
- oxymoron 6y agoTook me a few days before I could get to it, but this has been fixed now.