Live data from Hacker News

Opening http://../foo on Android Chrome crashes the browser (Warning: or worse)

bugs.chromium.org

11–20 of 86 posts

Re: Opening http://../foo on Android Chrome crashes the browser (Warning: or worse)

#11
post #9
post #5

My bet is on url parser in unsafe language

You realize "safe" languages don't protect you from all bugs, right? So tired of this narrative on HN.

From some bugs (or serious consequences in fact) they do, don't they?

Re: Opening http://../foo on Android Chrome crashes the browser (Warning: or worse)

#12

Warning: if you do this on your Android phone at the moment, you may have to completely clean your Chrome application storage to be able to use the app afterwards.

Clearing cache was sufficient enough for me to launch Chrome and quickly close the tab.

Re: Opening http://../foo on Android Chrome crashes the browser (Warning: or worse)

#13
post #5

My bet is on url parser in unsafe language

My bet is URL parser with insufficient tests.

It is well known that URLs are hard; nobody should ever trust their own implementation of a URL parser unless it is sufficiently tested (payload repositories exist for a reason).

Re: Opening http://../foo on Android Chrome crashes the browser (Warning: or worse)

#14
post #9

Earlier quoted context omitted.

You realize "safe" languages don't protect you from all bugs, right? So tired of this narrative on HN.

From some bugs (or serious consequences in fact) they do, don't they?

You can easily shoot yourself in the foot in any language.

Re: Opening http://../foo on Android Chrome crashes the browser (Warning: or worse)

#15
post #9
post #5

My bet is on url parser in unsafe language

You realize "safe" languages don't protect you from all bugs, right? So tired of this narrative on HN.

Unsafe code can make even safe and correct code behave unpredictably, which is a lot more dangerous than merely crashing in an obvious way.

Re: Opening http://../foo on Android Chrome crashes the browser (Warning: or worse)

#16
post #7

On XiaoMi phones at least, this is a system app (see: bloatware). That means you can't clear its app data nor uninstall it, effectively bricking Chrome permanently. The only thing you can do is uninstall the updates, which force resets its persistence, losing all of your stored data/sessions. If you've already done that... tough luck, I guess? What an awful bug.

> That means you can't clear its app data nor uninstall it, effectively bricking Chrome permanently.

I foresee a "brickrolling" trend.

Re: Opening http://../foo on Android Chrome crashes the browser (Warning: or worse)

#19
post #9
post #5

My bet is on url parser in unsafe language

You realize "safe" languages don't protect you from all bugs, right? So tired of this narrative on HN.

But actual crashes are most likely due to memory unsafety; I’d be extremely surprised if the root cause was not found to be in a memory-unsafe language, though I doubt it’ll be in the URL parser.
Post reply on HN