A Smackerel of Opinion
Notes and jottings from an ex-Ubuntu Kernel Team Engineer
Friday, 23 April 2021
C Ternary operator gotcha (type conversions)
›
The C ternary operator expr1 ? expr2 : expr3 has a subtle side note described in K&R 2nd edition, page 52, section 2.11: "If expr2 ...
Tuesday, 30 March 2021
A C for-loop Gotcha
›
The C infinite for-loop gotcha is one of the less frequent issues I find with static analysis, but I feel it is worth documenting because it...
1 comment:
Sunday, 28 March 2021
A Common C Integer Multiplication Mistake
›
Multiplying integers in C is easy. It is also easy to get it wrong. A common issue found using static analysis on the Linux kernel is th...
1 comment:
Thursday, 18 March 2021
A common C integer shifting mistake
›
Shifting integers in C is easy. Alas it is also easy to get it wrong. A common issue found using static analysis on the Linux kernel is th...
2 comments:
‹
›
Home
View web version