Skip to content

Comment on Xz.git: Fix Linux Landlock Feature Test in Autotools

Comments

This is just spectacular. Evil, of course, but spectacular nevertheless.

  +        #include <sys/prctl.h>
  +. <<<<<<<<<<<<<<<<<<<<<<<< THIS IS IT
  +        void my_sandbox(void)
  +        {
  +

why bother with a . instead of a &nbsp or some other unicode hackdodgery?

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”

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.