Live data from Hacker News

Do Not Type "File:///" in OS X

openradar.appspot.com

121–130 of 206 posts

Re: Do Not Type "File:///" in OS X

#121

Binary patch, for entertainment purposes only, do not actually use: http://twitter.com/landonfuller/status/297592929923502080

Landon is a really nice guy, by the way. He is the author of PLCrashReporter library and helped us out making it work with MonoTouch.

Re: Do Not Type "File:///" in OS X

#122
The word is out so it's only a matter of minutes for people to come up with this Safari DOS in Javascript:

https://gist.github.com/4696484

(remember to change to File)

Chrome survives, while Safari either crashes or behaves erratically up to being unusable. Firefox requires slight modifications to the event, but I'm bored.

Re: Do Not Type "File:///" in OS X

#125
I sent an iMessage (from iPhone) saying File:/// to my iMac and it crashed iMessage on the other end.. and now messages app crashes every time I try to launch!

Also Sent myself an email (from the iPhone) with File:/// as the subject (and in the body for good measure). The Mail.app won't crash on the incoming email, but it won't open that message.

Re: Do Not Type "File:///" in OS X

#126
post #53
post #49

Earlier quoted context omitted.

[deleted]

I try to avoid upgrading OSX. When a new version comes out, I wait for a hardware refresh and just get a new Mac (Apple has a nasty habit of disregarding backwards compatibility, and it's really nice to be able to do stuff like run older powerpc programs) EDIT: the [deleted] comment was 'I miss snow leopard'

> Apple has a nasty habit of disregarding backwards compatibility

On the hardware front, every single major update runs better than the one before here (Mid '09 MBP 13", originally under Leopard). Only issues were the battery on Lion an Mountain Lion on both .0 and .1 minors, which was a bug that affected everyone.

Re: Do Not Type "File:///" in OS X

#127
post #97

Several people have said that these apps are crashing at an assert. How did asserts make it into production code? Is it just a C thing to make them debug-only?

Sometimes (especially in dynamic-land) you assert stuff before doing some processing, so that stuff does not blow up halfway but upfront.

"- but, it should never happen?!"

"- so, make it not happen, ever"

Re: Do Not Type "File:///" in OS X

#128
post #53
post #49

Earlier quoted context omitted.

[deleted]

I try to avoid upgrading OSX. When a new version comes out, I wait for a hardware refresh and just get a new Mac (Apple has a nasty habit of disregarding backwards compatibility, and it's really nice to be able to do stuff like run older powerpc programs) EDIT: the [deleted] comment was 'I miss snow leopard'

Even that strategy isn't enough. I bought a Retina MBP with Lion pre-installed, which was the only configuration they sold, so you'd think it would have been pretty well tested. It turned out that the Lion video drivers couldn't handle the retina display. I had full machine crashes three times a day. Others online had the same problem, and some who were beta testing Mountain Lion said the new video drivers had cured their crashes. As soon as ML was released, I took the free upgrade, and the crashing stopped.

I then upgraded my kids' Snow Leopard Mac to Mountain Lion so I'd only have one Mac OS to admin (along with my Windows, Linux, iOS, and Android machines...sigh). The Mountain Lion upgrade caused all sorts of headaches on the kids' machine.

Moral: The new Mac OS version you buy might not be compatible with your Mac, even if it's the OS that came with it.

Re: Do Not Type "File:///" in OS X

#129

Fun exploit of this - you can use it to lock up Safari hard: http://grack.com/hangsafari.html (not a reduced testcase - it's more of a brute force) You can also trigger a mailto: link that crashes Mail: mailto:pete@bar.com?subject=File:///&body=File:///

Welp, sadly, Safari on Windows isn't affected.

Re: Do Not Type "File:///" in OS X

#130
post #79

Everything crashing: - Skype (type and right mouse click) - Sparrow (type and wait) - Chrome (address bar) - Safari (address bar) - Tweetbot - Twitter.app - Mac App Store (search bar) - Base (any textbox) - terminal (in the preferences screen) Not crashing: - SublimeText Pretty much each and every text box on the entire system.

Sublime Text will crash if you type File:/// into the help textbox in the help menu. (This is true of basically every OSX app there is)

That because menu and help search are OS X functions.
Post reply on HN