4 ms·
Parsing URLs is hard. Writing tests to find potential segfaults is easier.
by Paul_S 11y ago
Parsing URLs is hard. Writing tests to find potential segfaults is easier.
- deleted 11y ago[deleted]
- pbhjpbhj 11y agoWeb browsers seem to manage to parse URLs quite well. Doesn't this suggest that MS were doing something funky with the URLs or had some sort of code to operate on certain URLs differently? Why would simply linkifying break the whole app?
- TazeTSchnitzel 11y ago> Web browsers seem to manage to parse URLs quite well. Somehow, I think web browsers' URL parsers might be a little bit more hardened...
- pbhjpbhj 11y agoWhat happened to code reuse? Microsoft seem to manage to parse URLs in emails fine too. Is it really that hard a problem that one of Microsoft's most installed apps should find it impossible to do without crapping its pants??
- TheLoneWolfling 11y agoReally? https://github.com/servo/rust-url/pull/108 https://github.com/servo/rust-url/pull/108
- pbhjpbhj 11y agoThat's a protoype browser engine rather than a product installed on millions of users devices. The fact that this relatively minor project found that parsing error through basic testing at prototype stage actually supports the position that Microsoft should have found this before. https://github.com/servo/rust-url/blob/1f08064eda8c2873bd64e0d092186cdd26ee1c4a/src/urltestdata.txt https://github.com/servo/rust-url/blob/1f08064eda8c2873bd64e... - has the string http:// http://: in at several places - are you telling me that MS wouldn't be expected to run similar test data against their URL parser in Skype prior to release?