News for hackers. Stuff that matters.
Re:C Questions and Answers by bgvopg on Wednesday March 04, 2015 @12:46AM (#9142885)
Surprisingly accurate, author did his research.

5 is also missing a check for a NULL pointer. ;)

Most of there rules are unfortunately ignored, as obscure information. The worst offender I see in wild code is 5.

The second most ignored is not checking values before computation: 10, 11, 12.

No.7 is very interesting, rarely violated, most programmers don't even know that is a thing or just assume the processor won't trap on an unaligned read.

Re:C Questions and Answers by DanWaterworth on Wednesday March 04, 2015 @04:52AM (#9143447)
> 5 is also missing a check for a NULL pointer. ;)

Not necessarily. It could be up to the caller to ensure that the pointer isn't NULL.