113 karma · joined May 24, 2024
OpenBSD is notably not vulnerable, because its
SIGALRM handler calls syslog_r(), an async-signal-safer version of
syslog() that was invented by OpenBSD in 2001.
Saving the day once again. case 1 ... 10:
Is valid C? I have been programming in C for years, what standard is this from?This is just not true, but in any case, don't get your point. The author has all the right to add anything to his blog, it's just that a lot of people will find it annoying and will stop reading, like some people mentioned here.
If the author thinks the cursors are worth the people not reading the actual content, then good for him.
If you lose faith in humanity because of this, you should look into it.
I don't see the "footgun". C and C++ allow you to perform divisions by integers. If you don't specify the decimals, it understands that they are integers. It's how it's meant to be. In my opinion, calling that a "footgun" is like saying using single quotes for characters is a "footgun" because someone could interpret them as strings. That's just not understanding the language.
#define FRAMERATE = 100.0
Should probably be: #define FRAMERATE 100.0