News for hackers. Stuff that matters.
Re:Xz.git: Fix Linux Landlock Feature Test in Autotools by jamespwilliams on Saturday March 30, 2024 @06:31PM (#39879326)
Can you spot the intentional bug in this commit?
Re:Xz.git: Fix Linux Landlock Feature Test in Autotools by JSDevOps on Saturday March 30, 2024 @06:56PM (#39879486)
It was checking if the C compiled to detect the landlock feature, and there was a single character in the middle of the code that made it always fail to compile and therefore silently leave the feature disabled.
Re:Xz.git: Fix Linux Landlock Feature Test in Autotools by michelangelo on Sunday March 31, 2024 @04:05AM (#39882380)
This is just spectacular. Evil, of course, but spectacular nevertheless.

  +        #include <sys/prctl.h>
  +. <<<<<<<<<<<<<<<<<<<<<<<< THIS IS IT
  +        void my_sandbox(void)
  +        {
  +
Re:Xz.git: Fix Linux Landlock Feature Test in Autotools by fargle on Sunday March 31, 2024 @08:59PM (#39889811)
why bother with a . instead of a &nbsp or some other unicode hackdodgery?
Re:Xz.git: Fix Linux Landlock Feature Test in Autotools by olliej on Sunday March 31, 2024 @09:28PM (#39889999)
A few reasons have been previously discussed: plenty of diff viewers highlight non-standard characters being a big one, the other bit being if someone does see this error it seems entirely plausible as a mistake.

Choosing something atypical in a way that is clearly trying to be invisible rather than being an accident will draw a lot more attention than “oops I must have typo’d it”

Re:Xz.git: Fix Linux Landlock Feature Test in Autotools by atombender on Sunday March 31, 2024 @08:24AM (#39883632)
Thread from yesterday (221 comments): https://news.ycombinator.com/item?id=39874404