Skip to content

Comment on IDIV DoS (INT_MIN / -1)parent

Comments

Regardless of undefined behavior, it should not crash the compiler.

Ah, I missed that it can crash the tcc compiler. Yeah, that's a bug.

Probably easy to miss. One really does not expect the compiler to crash on code like that.

AboutSource Built by g1lg1l

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