tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

trojan-source.rst (805B)


      1 Trojan Source
      2 =============
      3 
      4 This linter verifies if a change is using some invalid unicode.
      5 
      6 The goal of this linter is to identify some potential usage of this
      7 technique:
      8 
      9 https://trojansource.codes/
     10 
     11 The code is inspired by the Red Hat script published:
     12 
     13 https://access.redhat.com/security/vulnerabilities/RHSB-2021-007#diagnostic-tools
     14 
     15 Run Locally
     16 -----------
     17 
     18 This mozlint linter can be run using mach:
     19 
     20 .. parsed-literal::
     21 
     22    $ mach lint --linter trojan-source <file paths>
     23 
     24 
     25 Configuration
     26 -------------
     27 
     28 This linter is enabled on most of the code base on C/C++, Python and Rust.
     29 
     30 Sources
     31 -------
     32 
     33 * `Configuration (YAML) <https://searchfox.org/mozilla-central/source/tools/lint/trojan-source.yml>`_
     34 * `Source <https://searchfox.org/mozilla-central/source/tools/lint/trojan-source/__init__.py>`_