Skip to content

Comment on Found a nice bug in IOS today, bricks your phone and kills the Simulator

Comments

I am not an iPhone developer, but the code doesn't seem unreasonable to me.

Can anybody explain what is special about this code?

It's a function that configures ten timers to call itself. So it causes an exponential number of timers to be set.

Thats not the bug though. Can do it without a loop as well. This was an old version, check the other one I posted here in this thread.

Ok. I would be very grateful for an explanation, then. ;-)

It creates 10 copies of an alarm on the same date with a setting to repeat twice. So I imagine 10 alarms firing at the same time is not a good idea. I don't see where it calls itself like other people are saying.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.