News for hackers. Stuff that matters.
Re:Deconstructing K&R C Is Dead (2015) by technion on Thursday May 19, 2016 @04:56AM (#11728903)
This is a great example because if it wasn't presented as "spot the UB", I'd expect very few people would raise a concern.

I've written up a demo with your code, running it through several analysers:

https://gist.github.com/technion/1b12c9b4581e915241d9483c5c2...

The tl;dr here is that tis-interpreter is a fantastic new tool, as it correctly complains about this.

Edit: I also note a departure from yester-year, where every linting tool would only manage to complain about unchecked malloc() returns.

There are no comments on this comment yet.