Malcolm: Prevent Trojan Source attacks with GCC 12
Malcolm: Prevent Trojan Source attacks with GCC 12
Posted Jan 13, 2022 1:07 UTC (Thu) by andresfreund (subscriber, #69562)In reply to: Malcolm: Prevent Trojan Source attacks with GCC 12 by JoeBuck
Parent article: Malcolm: Prevent Trojan Source attacks with GCC 12
Seems some attempts at that have been made?
From the post:
> We call a tokenization boundary such as a comment or string literal a bidirectional context in the warning because the obfuscation happens when there are differences between the structure as seen by the C tokenizer of the logical ordering of the characters on the one hand and the structure perceived by a human reader of the visual ordering of the code as implemented by the Unicode bidirectional algorithm on the other.
>The default is -Wbidi-chars=unpaired, in which the warning complains about unpaired characters within such a bidirectional context. A stronger form of the warning is -Wbidi-chars=any, in which the warning complains about any bidirectional control characters in the source code:
Posted Jan 13, 2022 2:31 UTC (Thu)
by NYKevin (subscriber, #129325)
[Link]
Malcolm: Prevent Trojan Source attacks with GCC 12