News for hackers. Stuff that matters.
Re:The Linux Backdoor Attempt of 2003 (2013) by staycoolboy on Monday August 10, 2020 @01:50PM (#24111973)
GCC warns of assignment in conditional, even without -Wall or -pendantic. I don't know when it started doing that, but it seems like a sore thumb today, different in 2003 maybe?
Re:The Linux Backdoor Attempt of 2003 (2013) by not2b on Monday August 10, 2020 @02:26PM (#24112397)
It only warns if the assignment doesn't have an extra pair of parentheses. These were added in this case, to silence the warning (so the attack would not be noticed). The parentheses are also needed in this case to get the precedence right, but they won't be needed if '==' were written, so anyone coding this by accident would immediately be warned of the mistake.
Re:The Linux Backdoor Attempt of 2003 (2013) by staycoolboy on Monday August 10, 2020 @03:17PM (#24112941)
Oh wow, I didn't know that. Sneaky.