4 ms·
Yeah, it was pointed out by someone on /r/rust when I first posted it. I thought I had corrected that, but apparently not. I’ll revise that tonight. It’s obviou
by oxymoron 6y ago
Yeah, it was pointed out by someone on /r/rust when I first posted it. I thought I had corrected that, but apparently not. I’ll revise that tonight. It’s obviously a bad mistake.
- fanf2 6y agoDNS 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.