Y
Hacker News
new
|
ask
|
show
|
jobs
by
SeldomSoup
3944 days ago
Interestingly, the author goes on to recommend
if(rc < 0) goto fail;
as a countermeasure for that breed of bug.
1 comments
Gibbon1
3944 days ago
gcc won't catch that kind of bug, but clang will definitely. So yeah, use static analysis tools.
link