diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2021-11-04 13:13:29 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-11-04 10:13:10 -0700 |
commit | 0e7696c64db78f698c40686d4869e2a8d0ab2696 (patch) | |
tree | f663bae2986e13618a6491e11fbeb38fcdd6e522 /compat/terminal.h | |
parent | Git 2.33.1 (diff) | |
download | tgif-0e7696c64db78f698c40686d4869e2a8d0ab2696.tar.xz |
ci: disallow directional formatting
As described in https://trojansource.codes/trojan-source.pdf, it is
possible to abuse directional formatting (a feature of Unicode) to
deceive human readers into interpreting code differently from compilers.
For example, an "if ()" expression could be enclosed in a comment, but
rendered as if it was outside of that comment. In effect, this could
fool a reviewer into misinterpreting the code flow as benign when it is
not.
It is highly unlikely that Git's source code wants to contain such
directional formatting in the first place, so let's just disallow it.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/terminal.h')
0 files changed, 0 insertions, 0 deletions