Could a media type string ever need more than 64kb? I hope not.
Oh certainly. I don't mean to panic. Just to turn the various stored indices from usizes to u16s.
-
-
Right, I mean what that code does when the conversion to u16 overflows.
-
It shouldn't overflow, since I've added a line at the top to check the full string length first, and if bigger than u16::MAX, return a parse error. Any overflowing after that would be a bug I've written...
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.