Could a media type string ever need more than 64kb? I hope not.
-
-
Replying to @seanmonstar
If practical, consider returning an error rather than panicking when it happens.
1 reply 0 retweets 0 likes -
Replying to @SimonSapin
Oh certainly. I don't mean to panic. Just to turn the various stored indices from usizes to u16s.
1 reply 0 retweets 0 likes -
Replying to @seanmonstar
Right, I mean what that code does when the conversion to u16 overflows.
1 reply 0 retweets 0 likes
Replying to @SimonSapin
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...
10:20 AM - 9 Jan 2019
0 replies
0 retweets
1 like
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.